public function getAttribute(string $name)
    {
        if (!$this->hasAttribute($name)) {
            throw new MissingAttributeError("The requested attribute '{$name}' does not exist");
        }

        return $this->attributes[$name];
    }
public function getAttribute(string $name)
    {
        if (!$this->hasAttribute($name)) {
            throw new MissingAttributeError("The requested attribute '{$name}' does not exist");
        }

        return $this->attributes[$name];
    }
public function getAttribute ( string $ name ) { if ( ! $ this -> hasAttribute ( $ name ) ) { throw new MissingAttributeError ( "The requested attribute '{$name}' does not exist" ) ; } return $ this -> attributes [ $ name ] ; }
Retrieve a variable from the request's mutable local storage.

Each request has its own mutable local storage to which request handlers and middleware may read and write data.
Other request handlers or middleware which are aware of this data can then access it without the server being
tightly coupled to specific implementations.

@param string $name Name of the attribute, should be namespaced with a vendor and package namespace like classes.

@return mixed
Retrieve a variable from the request s mutable local storage .