Datastore/src/Key.php
public function pathEndIdentifier()
    {
        $end = $this->pathEnd();

        if (isset($end['id'])) {
            return $end['id'];
        }

        if (isset($end['name'])) {
            return $end['name'];
        }

        return null;
    }
public function pathEndIdentifier()
    {
        $end = $this->pathEnd();

        if (isset($end['id'])) {
            return $end['id'];
        }

        if (isset($end['name'])) {
            return $end['name'];
        }

        return null;
    }
public function pathEndIdentifier ( ) { $ end = $ this -> pathEnd ( ) ; if ( isset ( $ end [ 'id' ] ) ) { return $ end [ 'id' ] ; } if ( isset ( $ end [ 'name' ] ) ) { return $ end [ 'name' ] ; } return null ; }
Get the last pathElement identifier.

If the key is incomplete, returns `null`.

Example:
```
$lastPathElementIndentifier = $key->pathEndIdentifier();
```

@return string|int|null
Get the last pathElement identifier .