PHP Класс Eloquent\Phony\Exporter\InlineExporter

Наследование: implements Eloquent\Phony\Exporter\Exporter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

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() публичный метод

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.
Результат string The exported value.

exportCallable() публичный метод

Export a string representation of a callable value.
public exportCallable ( callable $callback ) : string
$callback callable The callable.
Результат string The exported callable.

instance() публичный статический метод

Get the static instance of this exporter.
public static instance ( ) : Eloquent\Phony\Exporter\Exporter
Результат Eloquent\Phony\Exporter\Exporter The static exporter.

reset() публичный метод

Used for testing purposes only.
public reset ( )

setDepth() публичный метод

Negative depths are treated as infinite depth.
public setDepth ( integer $depth ) : integer
$depth integer The depth.
Результат integer The previous depth.