Move setters after getter in Role.php

refs #10887
This commit is contained in:
Eric Lippmann 2016-03-29 11:19:03 +02:00
parent 3d6ae6ac26
commit 08b70267cd
1 changed files with 24 additions and 24 deletions

View File

@ -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;
}
}