mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
fixes #94
This commit is contained in:
parent
ce5ba32f1d
commit
4aa204858b
|
|
@ -46,14 +46,6 @@ abstract class ResponseAbstract implements MessageInterface, \JsonSerializable
|
|||
*/
|
||||
protected $response = [];
|
||||
|
||||
/**
|
||||
* Response status.
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $status = 0;
|
||||
|
||||
/**
|
||||
* Account.
|
||||
*
|
||||
|
|
@ -108,25 +100,6 @@ abstract class ResponseAbstract implements MessageInterface, \JsonSerializable
|
|||
$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}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user