original_string: public function setTableExtraClasses($classes = array())
    {
      if( ! empty($classes) )
      {
        // validate classes
        foreach($classes as $class)
        {
          if(str_word_count($class) > 1)
          {
            throw new \InvalidArgumentException;
          }
        }
        $this->table_extra_classes = $classes;
      }
    }
code: public function setTableExtraClasses($classes = array())
    {
      if( ! empty($classes) )
      {
        // validate classes
        foreach($classes as $class)
        {
          if(str_word_count($class) > 1)
          {
            throw new \InvalidArgumentException;
          }
        }
        $this->table_extra_classes = $classes;
      }
    }
code_tokens: public function setTableExtraClasses ( $ classes = array ( ) ) { if ( ! empty ( $ classes ) ) { // validate classes foreach ( $ classes as $ class ) { if ( str_word_count ( $ class ) > 1 ) { throw new \ InvalidArgumentException ; } } $ this -> table_extra_classes = $ classes ; } }
docstring: Add extra classes to the table
  
  @param array $classes
  @return  void
  @throws  \InvalidArgumentException
docstring_tokens: Add extra classes to the table