HtmlObject\Traits\Tag::setTag PHP Method

setTag() protected method

Set up a new tag.
protected setTag ( string $element, string | null $value = null, array $attributes = [] )
$element string Its element
$value string | null Its value
$attributes array Its attributes
    protected function setTag($element, $value = null, $attributes = array())
    {
        $this->setValue($value);
        $this->setElement($element);
        $this->replaceAttributes($attributes);
    }