Pull out more members to header

This commit is contained in:
Dennis Eichhorn 2017-09-05 11:47:02 +02:00 committed by GitHub
parent b87621bebc
commit 41de67d0db

View File

@ -34,6 +34,22 @@ abstract class HeaderAbstract
*/
protected static $isLocked = false;
/**
* Localization.
*
* @var Localization
* @since 1.0.0
*/
protected $l11n = null;
/**
* Account.
*
* @var int
* @since 1.0.0
*/
protected $account = 0;
/**
* Response status.
*
@ -42,6 +58,39 @@ abstract class HeaderAbstract
*/
protected $status = 0;
/**
* {@inheritdoc}
*/
public function getL11n() : Localization
{
return $this->l11n;
}
/**
* {@inheritdoc}
*/
public function setL11n(Localization $l11n) /* : void */
{
$this->l11n = $l11n;
}
/**
* {@inheritdoc}
*/
public function getAccount() : int
{
return $this->account;
}
/**
* {@inheritdoc}
*/
public function setAccount(int $account) /* : void */
{
$this->account = $account;
}
/**
* {@inheritdoc}
* todo: shouldn't this only be available in the header?!