FluentDOM\Loader\Json\JsonDOM::__construct PHP Méthode

__construct() public méthode

The string will be decoded into a php variable structure and convert into a DOM document If options contains is self::OPTION_VERBOSE, the DOMNodes will all have json:type and json:name attributes. Even if the information could be read from the structure.
public __construct ( integer $options, integer $depth = 100 )
$options integer
$depth integer
    public function __construct($options = 0, $depth = 100)
    {
        $this->_recursions = (int) $depth;
        $this->_verbose = ($options & self::OPTION_VERBOSE) == self::OPTION_VERBOSE;
    }