public function getSubRoles(Role $role) {
		
		$parentName = $role->getRoleName();
		$subRoles = [];
		
		if(array_key_exists($role->getRoleName(), $this->mappedRoleNames)) {
			
			foreach($this->mappedRoleNames[$parentName] as $subRoleName) {
				$subRoles[] = new Role($subRoleName);
			}
			
		}
		
		return $subRoles;

	}
public function getSubRoles(Role $role) {
		
		$parentName = $role->getRoleName();
		$subRoles = [];
		
		if(array_key_exists($role->getRoleName(), $this->mappedRoleNames)) {
			
			foreach($this->mappedRoleNames[$parentName] as $subRoleName) {
				$subRoles[] = new Role($subRoleName);
			}
			
		}
		
		return $subRoles;

	}
public function getSubRoles ( Role $ role ) { $ parentName = $ role -> getRoleName ( ) ; $ subRoles = [ ] ; if ( array_key_exists ( $ role -> getRoleName ( ) , $ this -> mappedRoleNames ) ) { foreach ( $ this -> mappedRoleNames [ $ parentName ] as $ subRoleName ) { $ subRoles [ ] = new Role ( $ subRoleName ) ; } } return $ subRoles ; }
get all possible sub roles of a role

@param $role the parent role
@return array
get all possible sub roles of a role