public function setClass($class = '')
    {
        if (is_string($class) && (empty($class) === true || Format::isClass($class) === true)) {
            $class = trim($class);
            $this->class = $class;
        } else {
            $msg = "The 'class' argument must be a valid class name, '" . $class . "' given";
            throw new InvalidArgumentException($msg);
        }
    }
public function setClass($class = '')
    {
        if (is_string($class) && (empty($class) === true || Format::isClass($class) === true)) {
            $class = trim($class);
            $this->class = $class;
        } else {
            $msg = "The 'class' argument must be a valid class name, '" . $class . "' given";
            throw new InvalidArgumentException($msg);
        }
    }
public function setClass ( $ class = '' ) { if ( is_string ( $ class ) && ( empty ( $ class ) === true || Format :: isClass ( $ class ) === true ) ) { $ class = trim ( $ class ) ; $ this -> class = $ class ; } else { $ msg = "The 'class' argument must be a valid class name, '" . $ class . "' given" ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the classes assigned to the body element.

@param string $class One or more class names separated by spaces.
@throws \InvalidArgumentException If $class does not represent valid class name(s).
Set the classes assigned to the body element .