public function setAttribute($key, $valueue)
    {
        if ($key === 'class') {
            $this->setClass([$valueue]);
        }
        $this->attributes[$key] = $valueue;
        return $this;
    }