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 | Type | Description |
|---|---|---|
| $filePath | string |
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 | Type | Description |
|---|---|---|
| $key | string | array |
string | array
|
| $value | mixed |
mixed
|
Returns
static
public
write ($filePath = null)
: void
Write the current data to a file
Parameters
| Property | Type | Description |
|---|---|---|
| $filePath | mixed |
mixed
|
Returns
void
Copyright © 2025 Winter CMS