PHPHtmlParser\Dom\HtmlNode::__construct PHP Метод

__construct() публичный Метод

Sets up the tag of this node.
public __construct ( $tag )
$tag
    public function __construct($tag)
    {
        if (!$tag instanceof Tag) {
            $tag = new Tag($tag);
        }
        $this->tag = $tag;
        parent::__construct();
    }