Jackalope\Transport\DoctrineDBAL\Client::getJcrName PHP Method

getJcrName() private method

private getJcrName ( string $path ) : array
$path string
return array
    private function getJcrName($path)
    {
        $name = implode('', array_slice(explode('/', $path), -1, 1));
        if (($aliasLength = strpos($name, ':')) !== false) {
            $alias = substr($name, 0, $aliasLength);
            $name = substr($name, $aliasLength + 1);
        } else {
            $alias = '';
        }
        $namespaces = $this->getNamespaces();
        if (!isset($namespaces[$alias])) {
            throw new NamespaceException('the namespace ' . $alias . ' was not registered.');
        }
        return array($namespaces[$alias], $name);
    }