public __construct ( integer $depth, |
||
$depth | integer | The depth. |
$objectSequencer | The object sequencer to use. | |
$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;
}
}