src/Elements/BaseElement.php
public function hasClass($className)
    {
        foreach ($this->meta['classes'] as $classInMeta) {
            if ($classInMeta === $className) {
                return true;
            }
        }

        return false;
    }
public function hasClass($className)
    {
        foreach ($this->meta['classes'] as $classInMeta) {
            if ($classInMeta === $className) {
                return true;
            }
        }

        return false;
    }
public function hasClass ( $ className ) { foreach ( $ this -> meta [ 'classes' ] as $ classInMeta ) { if ( $ classInMeta === $ className ) { return true ; } } return false ; }
Check whether or not this element has a given class

@param string $className e.g. 'resourceGroup', 'messageBody'
@return bool
Check whether or not this element has a given class