PHP Interface Eloquent\Phony\Exporter\Exporter

Show file Open project: eloquent/phony Interface Usage Examples

Public Methods

Method Description
export ( &$value, integer | null $depth = null ) : string Export the supplied value.
exportCallable ( callable $callback ) : string Export a string representation of a callable value.
setDepth ( integer $depth ) : integer Set the default depth.

Method Details

export() public method

Negative depths are treated as infinite depth.
public export ( &$value, integer | null $depth = null ) : string
$depth integer | null The depth, or null to use the default.
return string The exported value.

exportCallable() public method

Export a string representation of a callable value.
public exportCallable ( callable $callback ) : string
$callback callable The callable.
return string The exported callable.

setDepth() public method

Negative depths are treated as infinite depth.
public setDepth ( integer $depth ) : integer
$depth integer The depth.
return integer The previous depth.