CodeExporter
in package
FinalYes
Exports parts of a Snapshot as PHP code.
Table of Contents
Methods
- constants() : string
- globalVariables() : string
- iniSettings() : string
- arrayOnlyContainsScalars() : bool
- exportVariable() : string
Methods
constants()
public
constants(Snapshot $snapshot) : string
Parameters
- $snapshot : Snapshot
Return values
stringglobalVariables()
public
globalVariables(Snapshot $snapshot) : string
Parameters
- $snapshot : Snapshot
Return values
stringiniSettings()
public
iniSettings(Snapshot $snapshot) : string
Parameters
- $snapshot : Snapshot
Return values
stringarrayOnlyContainsScalars()
private
arrayOnlyContainsScalars(array<string|int, mixed> $array) : bool
Parameters
- $array : array<string|int, mixed>
Return values
boolexportVariable()
private
exportVariable(mixed $variable) : string
Parameters
- $variable : mixed