File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ interface RoleInterface
1414{
1515 public function getParent (): ?RoleInterface ;
1616 public function getCode (): string ;
17- public function getPermissions (): array ;
17+ public function getPermissions ();
1818 public function isHasAllPermissions (): bool ;
1919}
Original file line number Diff line number Diff line change @@ -74,6 +74,16 @@ public function getPermissionsTree(): array
7474 return $ this ->permissionsTree ;
7575 }
7676
77+ public function setRolesTree (array $ rolesTree ): void
78+ {
79+ $ this ->rolesTree = $ rolesTree ;
80+ }
81+
82+ public function getRolesTree (): array
83+ {
84+ return $ this ->rolesTree ;
85+ }
86+
7787 public function getAllSubRolesAndPermissionsForRole (RoleInterface $ role ): array
7888 {
7989 $ rolesArray = [$ role ->getCode ()];
You can’t perform that action at this time.
0 commit comments