RootNode::__construct PHP Method

__construct() public method

public __construct ( )
    public function __construct()
    {
        $this->_children = array();
        $this->_indentation = -1;
        $this->_childrenCount = 0;
        $this->_lineNumber = 0;
        $this->_parent = null;
    }

Usage Example

Example #1
0
 public function __construct($line)
 {
     parent::__construct();
     $this->_rawHaml = $line;
     $this->_haml = trim($line);
     $this->setIndentationLevel(strlen($line) - strlen(ltrim($line)));
 }