*
* @return bool
*/
- public function isAdmin()
+ public function isAdmin(): bool
{
- return $this->admin;
+ return (bool)$this->admin;
}
/**
*
* @return bool
*/
- public function isSuperAdmin()
+ public function isSuperAdmin(): bool
{
- return $this->superadmin;
+ return (bool)$this->superadmin;
}
/**
*
* @return bool
*/
- public function isActive()
+ public function isActive(): bool
{
- return $this->active;
+ return (bool)$this->active;
}
/**
*
* @return bool
*/
- public function isStaff()
+ public function isStaff(): bool
{
- return $this->staff;
+ return (bool)$this->staff;
}
/**
*
* @return bool
*/
- public function isCron()
+ public function isCron(): bool
{
- return $this->cron;
+ return (bool)$this->cron;
}
/**
*
* @return boolean
*/
- public function isGroupManager($id_group = null)
+ public function isGroupManager($id_group = null): bool
{
$manager = false;
if ($this->isAdmin() || $this->isStaff()) {
*
* @return bool
*/
- public function isUp2Date()
+ public function isUp2Date(): bool
{
- return $this->uptodate;
+ return (bool)$this->uptodate;
}
/**