permissionRepository ??= new PermissionRepository(); } public function createRolePermissionRepository(): RolePermissionRepositoryInterface { return $this->rolePermissionRepository ??= new RolePermissionRepository(); } public function createRoleAssignableRoleRepository(): RoleAssignableRoleRepositoryInterface { return $this->roleAssignableRoleRepository ??= new RoleAssignableRoleRepository(); } public function createUserRoleRepository(): UserRoleRepositoryInterface { return $this->userRoleRepository ??= new UserRoleRepository(); } }