edgeEndKey.php
Table of Contents
Functions
- edgeEndKey() : string|null
- Returns the `_key` of one end of an edge (`_from` or `_to`).
Functions
edgeEndKey()
Returns the `_key` of one end of an edge (`_from` or `_to`).
edgeEndKey(mixed $edge, string $end) : string|null
Accepts the edge as an object or as an associative array, as the edge
models return it. The end is read as a document handle
(<collection>/<key>) and reduced to its _key by parseKey().
Parameters
- $edge : mixed
-
The edge : an object, an array, or anything else (answers
null). - $end : string
-
The end to read :
Schema::_FROMorSchema::_TO.
Tags
Return values
string|null —The _key of that end, or null when the edge has no such end, or a non-string one.