0
0
Fork 0
mirror of https://github.com/verdigado/organization_folders.git synced 2024-12-06 11:22:41 +01:00

added occ commands to inspect organization providers, organizations and organization roles

This commit is contained in:
Jonathan Treffler 2024-11-03 02:19:17 +01:00
parent 21f3a39b06
commit f85a93aa3a
11 changed files with 202 additions and 9 deletions

View file

@ -57,7 +57,7 @@ abstract class OrganizationProvider {
*
* @return Organization[]
*/
abstract public function getSubOrganizations(?int $parentOrganizationId): array;
abstract public function getSubOrganizations(?int $parentOrganizationId = null): array;
/**
* Get a specific role by its id (must be unique within organization provider, not just within parent organization)
@ -65,7 +65,7 @@ abstract class OrganizationProvider {
* @return OrganizationRole
* @throws OrganizationRoleNotFound
*/
abstract public function getRole(int $id): OrganizationRole;
abstract public function getRole(string $id): OrganizationRole;
/**
* Get all roles of a specific organization