PHP 클래스 Eloquent\Phony\Exporter\InlineExporter

상속: implements Eloquent\Phony\Exporter\Exporter
파일 보기 프로젝트 열기: eloquent/phony 1 사용 예제들

공개 메소드들

메소드 설명
__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.