Phly\Http\Server::__get PHP Method

__get() public method

Allow retrieving the request, response and callback as properties
public __get ( string $name ) : mixed
$name string
return mixed
    public function __get($name)
    {
        if (!property_exists($this, $name)) {
            throw new OutOfBoundsException('Cannot retrieve arbitrary properties from server');
        }
        return $this->{$name};
    }