src/Tokenizer/TokensAnalyzer.php
public function getClassyElements()
    {
        $this->tokens->rewind();
        $elements = [];

        for ($index = 1, $count = \count($this->tokens) - 2; $index < $count; ++$index) {
            if ($this->tokens[$index]->isClassy()) {
                list($index, $newElements) = $this->findClassyElements($index);
                $elements += $newElements;
            }
        }

        ksort($elements);

        return $elements;
    }
public function getClassyElements()
    {
        $this->tokens->rewind();
        $elements = [];

        for ($index = 1, $count = \count($this->tokens) - 2; $index < $count; ++$index) {
            if ($this->tokens[$index]->isClassy()) {
                list($index, $newElements) = $this->findClassyElements($index);
                $elements += $newElements;
            }
        }

        ksort($elements);

        return $elements;
    }
public function getClassyElements ( ) { $ this -> tokens -> rewind ( ) ; $ elements = [ ] ; for ( $ index = 1 , $ count = \ count ( $ this -> tokens ) - 2 ; $ index < $ count ; ++ $ index ) { if ( $ this -> tokens [ $ index ] -> isClassy ( ) ) { list ( $ index , $ newElements ) = $ this -> findClassyElements ( $ index ) ; $ elements += $ newElements ; } } ksort ( $ elements ) ; return $ elements ; }
Get indexes of methods and properties in classy code (classes, interfaces and traits).

@return array[]
Get indexes of methods and properties in classy code ( classes interfaces and traits ) .