public function getClassNames ( $withNamespace = true ) {
        $tokens = new \PHP_Token_Stream($this->_content);
        $classes = $tokens->getClasses();
        $classNames = array();
        foreach ( $classes as $className => $class ) {
            $namespace = $class['package']['namespace'];
            if ( $withNamespace === true && $namespace !== '' ) {
                $className = $namespace . '\\' . $className;
            }
            $classNames[] = $className;
        }
        return $classNames;
    }
public function getClassNames ( $withNamespace = true ) {
        $tokens = new \PHP_Token_Stream($this->_content);
        $classes = $tokens->getClasses();
        $classNames = array();
        foreach ( $classes as $className => $class ) {
            $namespace = $class['package']['namespace'];
            if ( $withNamespace === true && $namespace !== '' ) {
                $className = $namespace . '\\' . $className;
            }
            $classNames[] = $className;
        }
        return $classNames;
    }
public function getClassNames ( $ withNamespace = true ) { $ tokens = new \ PHP_Token_Stream ( $ this -> _content ) ; $ classes = $ tokens -> getClasses ( ) ; $ classNames = array ( ) ; foreach ( $ classes as $ className => $ class ) { $ namespace = $ class [ 'package' ] [ 'namespace' ] ; if ( $ withNamespace === true && $ namespace !== '' ) { $ className = $ namespace . '\\' . $ className ; } $ classNames [ ] = $ className ; } return $ classNames ; }
Get class names defined in target file

@param bool $withNamespace
@return array defined class names
Get class names defined in target file