protected function addElementClasses(string $option, $classes): Breadcrumbs
    {
        if (is_string($classes)) {
            $classes = explode(' ', $classes);
        }
        $this->validateClasses($classes);

        $classes = array_merge(
            $this->getOption($option),
            $classes
        );
        $this->setOption($option, array_unique($classes));

        return $this;
    }
protected function addElementClasses(string $option, $classes): Breadcrumbs
    {
        if (is_string($classes)) {
            $classes = explode(' ', $classes);
        }
        $this->validateClasses($classes);

        $classes = array_merge(
            $this->getOption($option),
            $classes
        );
        $this->setOption($option, array_unique($classes));

        return $this;
    }
protected function addElementClasses ( string $ option , $ classes ) : Breadcrumbs { if ( is_string ( $ classes ) ) { $ classes = explode ( ' ' , $ classes ) ; } $ this -> validateClasses ( $ classes ) ; $ classes = array_merge ( $ this -> getOption ( $ option ) , $ classes ) ; $ this -> setOption ( $ option , array_unique ( $ classes ) ) ; return $ this ; }
Add one or more CSS classes related to the option type.

@param string $option The option from where we must add the classes.
@param string|array $classes The classes to add.

@return \Xety\Breadcrumbs\Breadcrumbs
Add one or more CSS classes related to the option type .