getRooms(); $users = \array_map(static function (Room $room) { return \array_keys($room->getUsers()); }, \array_filter($rooms, static function (Room $room) { return $room->canSee(); })); if (empty($users)) { return 0; } return \count(\array_unique(\call_user_func_array('array_merge', $users))); } /** * @inheritDoc */ public function isVisible($objectID = null) { return Room::canSeeAny(); } }