Firestore/src/PathTrait.php
private function pathId($name)
    {
        $parts = $this->splitName($name);
        if ($parts[0] === '') {
            return null;
        }

        return end($parts);
    }
private function pathId($name)
    {
        $parts = $this->splitName($name);
        if ($parts[0] === '') {
            return null;
        }

        return end($parts);
    }
private function pathId ( $ name ) { $ parts = $ this -> splitName ( $ name ) ; if ( $ parts [ 0 ] === '' ) { return null ; } return end ( $ parts ) ; }
Return the identifier from a path.

@param string $name
@return string|null
Return the identifier from a path .