PHPHtmlParser\Dom\AbstractNode::__construct PHP 메소드

__construct() 공개 메소드

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

Usage Example

예제 #1
0
파일: HtmlNode.php 프로젝트: h-inuzuka/quiz
 /**
  * Sets up the tag of this node.
  */
 public function __construct($tag)
 {
     if (!$tag instanceof Tag) {
         $tag = new Tag($tag);
     }
     $this->tag = $tag;
     parent::__construct();
 }