for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace nebula\request;
use nebula\request\attribute\URIAttribute;
/**
* HTTP请求解析器
*
*/
class Request {
use URIAttribute;
* 请求方法
* @var string
protected $method;
* 请求头
protected $headers;
public function __construct(string $method, string $uri, array $headers = []) {
$this->uri = $uri;
$this->method = strtoupper($method);
$this->headers = $headers;
$headers
array
string
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
}
* Get 请求方法
* @return string
public function getMethod()
{
return $this->method;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..