DataSift\Storyplayer\PlayerLib\Prose_Loader::convertMethodNameToWords PHP 메소드

convertMethodNameToWords() 보호된 메소드

this needs moving into its own trait perhaps, or into a static inside the Stone library
protected convertMethodNameToWords ( string $methodName ) : array
$methodName string
리턴 array
    protected function convertMethodNameToWords($methodName)
    {
        // turn the method name into an array of words
        $words = explode(' ', strtolower(preg_replace('/([^A-Z])([A-Z])/', "\$1 \$2", $methodName)));
        // all done
        return $words;
    }