public function getStatedClassNameToken(string $statedClassName, $removeProxyName = false): string
    {
        $statedClassNamePart = \explode('\\', $statedClassName);
        if (true === $removeProxyName) {
            \array_pop($statedClassNamePart);
        }

        return \strtolower(\implode('_', $statedClassNamePart));
    }
public function getStatedClassNameToken(string $statedClassName, $removeProxyName = false): string
    {
        $statedClassNamePart = \explode('\\', $statedClassName);
        if (true === $removeProxyName) {
            \array_pop($statedClassNamePart);
        }

        return \strtolower(\implode('_', $statedClassNamePart));
    }
public function getStatedClassNameToken ( string $ statedClassName , $ removeProxyName = false ) : string { $ statedClassNamePart = \ explode ( '\\' , $ statedClassName ) ; if ( true === $ removeProxyName ) { \ array_pop ( $ statedClassNamePart ) ; } return \ strtolower ( \ implode ( '_' , $ statedClassNamePart ) ) ; }
To get the token from a stated class.

@param string $statedClassName
@param bool   $removeProxyName

@return string
To get the token from a stated class .