Role: implement setPermissions() and setRestrictions()

refs #10887
This commit is contained in:
Alexander A. Klimov 2016-03-24 16:11:31 +01:00
parent f1f4cdc3cb
commit 57ce39834d
1 changed files with 26 additions and 0 deletions

View File

@ -62,6 +62,19 @@ class Role
return $this;
}
/**
* Set permissions of the role
*
* @param string[] $permissions
*
* @return $this
*/
public function setPermissions(array $permissions)
{
$this->permissions = $permissions;
return $this;
}
/**
* Get the permissions of the role
*
@ -89,6 +102,19 @@ class Role
return $this;
}
/**
* Set restrictions of the role
*
* @param string[] $restrictions
*
* @return $this
*/
public function setRestrictions(array $restrictions)
{
$this->restrictions = $restrictions;
return $this;
}
/**
* Get the restrictions of the role
*