Art4\JsonApiClient\ResourceIdentifierCollection::get PHP Method

get() public method

Get a value by the key of this document
public get ( string $key ) : mixed
$key string The key of the value
return mixed The value
    public function get($key)
    {
        try {
            return $this->container->get($key);
        } catch (AccessException $e) {
            throw new AccessException('"' . $key . '" doesn\'t exist in this resource.');
        }
    }