private function isValidClass(PhpClass $class)
    {
        $classNames = $this->config->get('classNames');
        return (empty($classNames) || in_array(
            $class->getIdentifier(),
            $classNames
        ));
    }
private function isValidClass(PhpClass $class)
    {
        $classNames = $this->config->get('classNames');
        return (empty($classNames) || in_array(
            $class->getIdentifier(),
            $classNames
        ));
    }
private function isValidClass ( PhpClass $ class ) { $ classNames = $ this -> config -> get ( 'classNames' ) ; return ( empty ( $ classNames ) || in_array ( $ class -> getIdentifier ( ) , $ classNames ) ) ; }
Checks if the class is approved
Removes the prefix and suffix for namechecking

@param PhpClass $class
@return bool Returns true if the class is ok to add to file
Checks if the class is approved Removes the prefix and suffix for namechecking