original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Add one or more CSS classes related to the option type .