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

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

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

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

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

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

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

If the key is incomplete, returns `null`.

Example:
```
$lastPathElementIdentifierType = $key->pathEndIdentifierType();
```

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