php-http2/src/Request.php

58 lines
683 B
PHP

<?php
namespace JoopSchilder\Http2;
/**
* Class Request
*/
class Request
{
/** @var string */
private $uri;
/** @var array */
private $options;
/**
* Request constructor.
* @param string $uri
*/
public function __construct(string $uri)
{
$this->uri = $uri;
$this->options = [];
}
/**
* @return string
*/
public function getUri(): string
{
return $this->uri;
}
/**
* @return array
*/
public function getOptions(): array
{
return $this->options;
}
/**
* @param array $options
* @return Request
*/
public function setOptions(array $options)
{
$this->options = array_replace($this->options, $options);
return $this;
}
}