/** * Get all the lock instances for all the roles of the current caller * * @return \BeatSwitch\Lock\Roles\RoleLock[] */ protected function getLockInstancesForCallerRoles() { return array_map(function ($role) { return $this->manager->role($role); }, $this->caller->getCallerRoles()); }