__construct() public method

Creates a unique spl hash for this node.
public __construct ( )
コード例 #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();
 }