mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 06:48:41 +00:00
fixes #94
This commit is contained in:
parent
4aa204858b
commit
ebab71704a
|
|
@ -34,6 +34,33 @@ abstract class HeaderAbstract
|
||||||
*/
|
*/
|
||||||
protected static $isLocked = false;
|
protected static $isLocked = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Response status.
|
||||||
|
*
|
||||||
|
* @var int
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
protected $status = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@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;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set header.
|
* Set header.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user