public function addClass(string $value) : self
    {
        $class = trim($this->attributes['class']);
        $this->attributes['class'] = trim($class . ' ' . trim($value));
        return $this;
    }