src/Service/Tokenlist.php
public function getClassName()
    {
        foreach ($this->tokenlist as $key => $token) {
            if (T_CLASS === $token[0]) {
                return $this->tokenlist[$key + 2][1];
            }
        }

        return '';
    }
public function getClassName()
    {
        foreach ($this->tokenlist as $key => $token) {
            if (T_CLASS === $token[0]) {
                return $this->tokenlist[$key + 2][1];
            }
        }

        return '';
    }
public function getClassName ( ) { foreach ( $ this -> tokenlist as $ key => $ token ) { if ( T_CLASS === $ token [ 0 ] ) { return $ this -> tokenlist [ $ key + 2 ] [ 1 ] ; } } return '' ; }
Get the first classname

@return string
Get the first classname