Adding group status

This commit is contained in:
Dennis Eichhorn 2016-10-02 12:06:07 +02:00
parent f8f2582d2e
commit dd6016bcbd
2 changed files with 50 additions and 0 deletions

View File

@ -71,6 +71,8 @@ class Group implements ArrayableInterface, \JsonSerializable
*/
protected $parents = [];
private $status = GroupStatus::INACTIVE;
/**
* Permissions.
*
@ -171,6 +173,16 @@ class Group implements ArrayableInterface, \JsonSerializable
$this->description = $description;
}
public function getStatus() : int
{
return $this->status;
}
public function setStatus(int $status)
{
$this->status = $status;
}
/**
* Get string representation.
*

38
Account/GroupStatus.php Normal file
View File

@ -0,0 +1,38 @@
<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
namespace phpOMS\Account;
use phpOMS\Datatypes\Enum;
/**
* Accept status enum.
*
* @category Calendar
* @package Modules
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @license OMS License 1.0
* @link http://orange-management.com
* @since 1.0.0
*/
abstract class GroupStatus extends Enum
{
const ACTIVE = 1;
const INACTIVE = 2;
const HIDDEN = 4;
}