This commit is contained in:
Dennis Eichhorn 2017-09-05 11:27:07 +02:00 committed by GitHub
parent ce5ba32f1d
commit 4aa204858b

View File

@ -46,14 +46,6 @@ abstract class ResponseAbstract implements MessageInterface, \JsonSerializable
*/ */
protected $response = []; protected $response = [];
/**
* Response status.
*
* @var int
* @since 1.0.0
*/
protected $status = 0;
/** /**
* Account. * Account.
* *
@ -108,25 +100,6 @@ abstract class ResponseAbstract implements MessageInterface, \JsonSerializable
$this->response = ArrayUtils::setArray((string) $key, $this->response, $response, ':', $overwrite); $this->response = ArrayUtils::setArray((string) $key, $this->response, $response, ':', $overwrite);
} }
/**
* {@inheritdoc}
* todo: shouldn't this only be available in the header?!
*/
public function setStatusCode(int $status) /* : void */
{
$this->status = $status;
$this->header->generate($status);
}
/**
* {@inheritdoc}
* todo: shouldn't this only be available in the header?!
*/
public function getStatusCode() : int
{
return $this->status;
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */