public function addElementClass($class)
    {
        if (is_array($class) || is_string($class)) {
            $this->elementClass = array_merge($this->elementClass, (array) $class);

            $this->elementClass = array_unique($this->elementClass);
        }

        return $this;
    }
public function addElementClass($class)
    {
        if (is_array($class) || is_string($class)) {
            $this->elementClass = array_merge($this->elementClass, (array) $class);

            $this->elementClass = array_unique($this->elementClass);
        }

        return $this;
    }
public function addElementClass ( $ class ) { if ( is_array ( $ class ) || is_string ( $ class ) ) { $ this -> elementClass = array_merge ( $ this -> elementClass , ( array ) $ class ) ; $ this -> elementClass = array_unique ( $ this -> elementClass ) ; } return $ this ; }
Add the element class.

@param $class

@return $this
Add the element class .