PHPHtmlParser\Dom\HtmlNode::__construct PHP Method

__construct() public method

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();
    }