protected function getClass($key, array $tokens)
    {
        $class = null;
        $tokenCount = count($tokens);
        for ($i = $key; $i < $tokenCount; $i++) {
            if ($this->isPartOfClass($tokens[$i])) {
                $class .= $tokens[$i][1];
            } elseif ($this->isWhitespace($tokens[$i])) {
                return $class;
            }
        }
    }
protected function getClass($key, array $tokens)
    {
        $class = null;
        $tokenCount = count($tokens);
        for ($i = $key; $i < $tokenCount; $i++) {
            if ($this->isPartOfClass($tokens[$i])) {
                $class .= $tokens[$i][1];
            } elseif ($this->isWhitespace($tokens[$i])) {
                return $class;
            }
        }
    }
protected function getClass ( $ key , array $ tokens ) { $ class = null ; $ tokenCount = count ( $ tokens ) ; for ( $ i = $ key ; $ i < $ tokenCount ; $ i ++ ) { if ( $ this -> isPartOfClass ( $ tokens [ $ i ] ) ) { $ class .= $ tokens [ $ i ] [ 1 ] ; } elseif ( $ this -> isWhitespace ( $ tokens [ $ i ] ) ) { return $ class ; } } }
Find the class in the tokens starting at a given key.

@param  int  $key
@param  array  $tokens
@return string|null
Find the class in the tokens starting at a given key .