mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
fixes #94
This commit is contained in:
parent
4aa204858b
commit
ebab71704a
|
|
@ -33,6 +33,33 @@ abstract class HeaderAbstract
|
|||
* @since 1.0.0
|
||||
*/
|
||||
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.
|
||||
|
|
@ -98,4 +125,4 @@ abstract class HeaderAbstract
|
|||
{
|
||||
return self::$isLocked;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user