PHP Class Eloquent\Phony\Exporter\InlineExporter

Inheritance: implements Eloquent\Phony\Exporter\Exporter
Afficher le fichier Open project: eloquent/phony Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( integer $depth, Sequencer $objectSequencer, InvocableInspector $invocableInspector ) Construct a new inline exporter.
export ( &$value, integer | null $depth = null ) : string Export the supplied value.
exportCallable ( callable $callback ) : string Export a string representation of a callable value.
instance ( ) : Eloquent\Phony\Exporter\Exporter Get the static instance of this exporter.
reset ( ) Reset the internal state of the exporter.
setDepth ( integer $depth ) : integer Set the default depth.

Method Details

__construct() public méthode

Construct a new inline exporter.
public __construct ( integer $depth, Sequencer $objectSequencer, InvocableInspector $invocableInspector )
$depth integer The depth.
$objectSequencer Eloquent\Phony\Sequencer\Sequencer The object sequencer to use.
$invocableInspector Eloquent\Phony\Invocation\InvocableInspector The invocable inspector to use.

export() public méthode

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.
Résultat string The exported value.

exportCallable() public méthode

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

instance() public static méthode

Get the static instance of this exporter.
public static instance ( ) : Eloquent\Phony\Exporter\Exporter
Résultat Eloquent\Phony\Exporter\Exporter The static exporter.

reset() public méthode

Used for testing purposes only.
public reset ( )

setDepth() public méthode

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