src/HtmlElement.php
public function removeClass(string $value) : self
    {
        $currentClasses = $this->getClasses();
        $classes = array_diff($currentClasses, explode(' ', $value));

        return $this->addAttribute('class', implode(' ', $classes));
    }
public function removeClass(string $value) : self
    {
        $currentClasses = $this->getClasses();
        $classes = array_diff($currentClasses, explode(' ', $value));

        return $this->addAttribute('class', implode(' ', $classes));
    }
@param string $value

@return $this|self