Optimize order

This commit is contained in:
Dennis Eichhorn 2017-09-18 18:36:34 +02:00
parent b424eb67bf
commit d48d65fe86
2 changed files with 97 additions and 97 deletions

View File

@ -191,18 +191,6 @@ class Group implements ArrayableInterface, \JsonSerializable
return json_encode($this->toArray());
}
/**
* Json serialize.
*
* @return string
*
* @since 1.0.0
*/
public function jsonSerialize()
{
return $this->toArray();
}
/**
* {@inheritdoc}
*/
@ -216,4 +204,16 @@ class Group implements ArrayableInterface, \JsonSerializable
'members' => $this->members,
];
}
/**
* Json serialize.
*
* @return string
*
* @since 1.0.0
*/
public function jsonSerialize()
{
return $this->toArray();
}
}

View File

@ -12,8 +12,8 @@
* @link http://orange-management.com
*/
declare(strict_types=1);
namespace phpOMS\Account;
use phpOMS\Account\PermissionType;
/**
* InfoManager class.
@ -124,90 +124,6 @@ abstract class PermissionAbstract
return $this->unit;
}
/**
* Get app name.
*
* @return string
*
* @since 1.0.0
*/
public function getApp() /* : ?string */
{
return $this->app;
}
/**
* Get module id.
*
* @return int
*
* @since 1.0.0
*/
public function getModule() /* : ?int */
{
return $this->module;
}
/**
* Get providing module id.
*
* @return int
*
* @since 1.0.0
*/
public function getFrom() /* : ?int */
{
return $this->from;
}
/**
* Get type.
*
* @return int
*
* @since 1.0.0
*/
public function getType() /* : ?int */
{
return $this->type;
}
/**
* Get element id.
*
* @return int
*
* @since 1.0.0
*/
public function getElement() /* : ?int */
{
return $this->element;
}
/**
* Get component id.
*
* @return int
*
* @since 1.0.0
*/
public function getComponent() /* : ?int */
{
return $this->component;
}
/**
* Get permission
*
* @return int
*
* @since 1.0.0
*/
public function getPermission() : int
{
return $this->permission;
}
/**
* Set unit id.
*
@ -222,6 +138,18 @@ abstract class PermissionAbstract
$this->unit = $unit;
}
/**
* Get app name.
*
* @return string
*
* @since 1.0.0
*/
public function getApp() /* : ?string */
{
return $this->app;
}
/**
* Set app name.
*
@ -236,6 +164,18 @@ abstract class PermissionAbstract
$this->app = $app;
}
/**
* Get module id.
*
* @return int
*
* @since 1.0.0
*/
public function getModule() /* : ?int */
{
return $this->module;
}
/**
* Set module id.
*
@ -250,6 +190,18 @@ abstract class PermissionAbstract
$this->module = $module;
}
/**
* Get providing module id.
*
* @return int
*
* @since 1.0.0
*/
public function getFrom() /* : ?int */
{
return $this->from;
}
/**
* Set providing module id.
*
@ -264,6 +216,18 @@ abstract class PermissionAbstract
$this->from = $from;
}
/**
* Get type.
*
* @return int
*
* @since 1.0.0
*/
public function getType() /* : ?int */
{
return $this->type;
}
/**
* Set type.
*
@ -278,6 +242,18 @@ abstract class PermissionAbstract
$this->type = $type;
}
/**
* Get element id.
*
* @return int
*
* @since 1.0.0
*/
public function getElement() /* : ?int */
{
return $this->element;
}
/**
* Set element id.
*
@ -292,6 +268,18 @@ abstract class PermissionAbstract
$this->element = $element;
}
/**
* Get component id.
*
* @return int
*
* @since 1.0.0
*/
public function getComponent() /* : ?int */
{
return $this->component;
}
/**
* Set component id.
*
@ -306,6 +294,18 @@ abstract class PermissionAbstract
$this->component = $component;
}
/**
* Get permission
*
* @return int
*
* @since 1.0.0
*/
public function getPermission() : int
{
return $this->permission;
}
/**
* Set permission.
*