DataFileInterface

 interface Winter\Storm\Parse\Contracts\DataFileInterface

Methods

public static open (string $filePath) : static

Return a new instance of DataFileInterface ready for modification of the provided filepath.

Parameters
Property Description
$filePath
string
Returns
static

public render () : string

Get the printed data

Returns
string

public set (string | array $key, $value = null) : static

Set a property within the data.

Parameters
Property Description
$key
string | array
$value
mixed
Returns
static

public write ($filePath = null) : void

Write the current data to a file

Parameters
Property Description
$filePath
mixed
Returns
void
Copyright © 2024 Winter CMS