PHPHtmlParser\Dom\AbstractNode::__construct PHP Method

__construct() public method

Creates a unique spl hash for this node.
public __construct ( )
    public function __construct()
    {
        $this->id = spl_object_hash($this);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Sets up the tag of this node.
  */
 public function __construct($tag)
 {
     if (!$tag instanceof Tag) {
         $tag = new Tag($tag);
     }
     $this->tag = $tag;
     parent::__construct();
 }