public function removeClass($class)
    {
        $classes = $this->getClasses();

        if (false !== $index = array_search($class, $classes)) {
            unset($classes[$index]);
        }

        $this->setClasses($classes);

        return $this;
    }