src/Helper/AccessableTrait.php
private 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 . '".');
    }
private 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 . '".');
    }
private 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 . '".' ) ; }
Get a value by the key

@param string $key The key of the value

@return mixed The value
Get a value by the key