src/Helper/ClassHelper.php
public static function splitName($class)
    {
        $pos = strrpos($class, '\\');
        if ($pos === false) {
            return [null, $class];
        } else {
            return [substr($class, 0, $pos), substr($class, $pos+1)];
        }
    }
public static function splitName($class)
    {
        $pos = strrpos($class, '\\');
        if ($pos === false) {
            return [null, $class];
        } else {
            return [substr($class, 0, $pos), substr($class, $pos+1)];
        }
    }
public static function splitName ( $ class ) { $ pos = strrpos ( $ class , '\\' ) ; if ( $ pos === false ) { return [ null , $ class ] ; } else { return [ substr ( $ class , 0 , $ pos ) , substr ( $ class , $ pos + 1 ) ] ; } }
Splits class name to namespace and class name

@param string $class
@return array
Splits class name to namespace and class name