parent
3d6ae6ac26
commit
08b70267cd
|
@ -63,7 +63,17 @@ class Role
|
|||
}
|
||||
|
||||
/**
|
||||
* Set permissions of the role
|
||||
* Get the permissions of the role
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getPermissions()
|
||||
{
|
||||
return $this->permissions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the permissions of the role
|
||||
*
|
||||
* @param string[] $permissions
|
||||
*
|
||||
|
@ -75,16 +85,6 @@ class Role
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the permissions of the role
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getPermissions()
|
||||
{
|
||||
return $this->permissions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a restriction to the role
|
||||
*
|
||||
|
@ -102,19 +102,6 @@ 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
|
||||
*
|
||||
|
@ -136,4 +123,17 @@ class Role
|
|||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the restrictions of the role
|
||||
*
|
||||
* @param string[] $restrictions
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRestrictions(array $restrictions)
|
||||
{
|
||||
$this->restrictions = $restrictions;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue