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;
}
}