extensions/felixfbecker.php-intellisense-0.0.12/vendor/squizlabs/php_codesniffer/src/Files/File.php
/**
     * Returns the name of the class that the specified class extends.
     *
     * Returns FALSE on error or if there is no extended class name.
     *
     * @param int $stackPtr The stack position of the class.
     *
     * @return string|false
     */
Returns the name of the class that the specified class extends.
Returns FALSE on error or if there is no extended class name.

@param int $stackPtr The stack position of the class.

@return string|false
Returns the name of the class that the specified class extends . Returns FALSE on error or if there is no extended class name . @param int $stackPtr The stack position of the class . @return string|false
public function findExtendedClassName($stackPtr)
    {
        if (isset($this->tokens[$stackPtr]) === false) {
            return false;
        }
        if ($this->tokens[$stackPtr]['code'] !== T_CLASS) {
            return false;
        }
        if (isset($this->tokens[$stackPtr]['scope_closer']) === false) {
            return false;
        }
        $classCloserIndex = $this->tokens[$stackPtr]['scope_closer'];
        $extendsIndex     = $this->findNext(T_EXTENDS, $stackPtr, $classCloserIndex);
        if (false === $extendsIndex) {
            return false;
        }
        $find = array(
                 T_NS_SEPARATOR,
                 T_STRING,
                 T_WHITESPACE,
                );
        $end  = $this->findNext($find, ($extendsIndex + 1), $classCloserIndex, true);
        $name = $this->getTokensAsString(($extendsIndex + 1), ($end - $extendsIndex - 1));
        $name = trim($name);
        if ($name === '') {
            return false;
        }
        return $name;
    }
public function findExtendedClassName ( $ stackPtr ) { if ( isset ( $ this -> tokens [ $ stackPtr ] ) === false ) { return false ; } if ( $ this -> tokens [ $ stackPtr ] [ 'code' ] !== T_CLASS ) { return false ; } if ( isset ( $ this -> tokens [ $ stackPtr ] [ 'scope_closer' ] ) === false ) { return false ; } $ classCloserIndex = $ this -> tokens [ $ stackPtr ] [ 'scope_closer' ] ; $ extendsIndex = $ this -> findNext ( T_EXTENDS , $ stackPtr , $ classCloserIndex ) ; if ( false === $ extendsIndex ) { return false ; } $ find = array ( T_NS_SEPARATOR , T_STRING , T_WHITESPACE , ) ; $ end = $ this -> findNext ( $ find , ( $ extendsIndex + 1 ) , $ classCloserIndex , true ) ; $ name = $ this -> getTokensAsString ( ( $ extendsIndex + 1 ) , ( $ end - $ extendsIndex - 1 ) ) ; $ name = trim ( $ name ) ; if ( $ name === '' ) { return false ; } return $ name ; }
Returns the name of the class that the specified class extends.
Returns the name of the class that the specified class extends .
// Check for the existence of the token.