Eloquent\Phony\Exporter\InlineExporter::__construct PHP Méthode

__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.
    public function __construct($depth, Sequencer $objectSequencer, InvocableInspector $invocableInspector)
    {
        $this->depth = $depth;
        $this->objectSequencer = $objectSequencer;
        $this->invocableInspector = $invocableInspector;
        $this->objectIds = array();
        $this->jsonFlags = 0;
        if (defined('JSON_UNESCAPED_SLASHES')) {
            $this->jsonFlags |= JSON_UNESCAPED_SLASHES;
        }
        if (defined('JSON_UNESCAPED_UNICODE')) {
            $this->jsonFlags |= JSON_UNESCAPED_UNICODE;
        }
    }