Art4\JsonApiClient\Utils\DataContainer::getValue PHP Method

getValue() protected method

Get a value by the key
protected getValue ( string $key ) : mixed
$key string The key of the value
return mixed The value
    protected function getValue($key)
    {
        if (array_key_exists($key, $this->data)) {
            return $this->data[$key];
        }
        throw new AccessException('Could not get the value for the key "' . $key . '".');
    }