If the previous pathElement is incomplete (has no name or ID specified),
an InvalidArgumentException will be thrown. Once an incomplete
pathElement is given, the key cannot be extended any further.
Example:
$key->pathElement('Person', 'Jane');
In cases where the identifier type is ambiguous, you can choose the
type to be used.
$key->pathElement('Robots', '1337', [
'identifierType' => Key::TYPE_NAME
]);
public pathElement ( string $kind, string | integer $identifier = null, array $options = [] ) : |
||
$kind | string | The kind. |
$identifier | string | integer | [optional] The name or ID of the object. |
$options | array | { Configuration Options @type string $identifierType [optional] If omitted, the type will be determined internally. Setting this to either `Key::TYPE_ID` or `Key::TYPE_NAME` will force the pathElement identifier type. } |
리턴 |