modelManager === null) { $this->modelManager = Server::get(ModelManager::class); } return $this->modelManager; } /** @noinspection PhpPossiblePolymorphicInvocationInspection */ public function importFromIFederatedUser(IFederatedUser $orig): void { if (!($this instanceof IFederatedUser)) { return; } // TODO : move those methods to this class ? $this->setSingleId($orig->getSingleId()); $this->setUserId($orig->getUserId()); $this->setUserType($orig->getUserType()); $this->setDisplayName($orig->getDisplayName()); if ($orig->hasBasedOn()) { $this->setBasedOn($orig->getBasedOn()); } $this->setInstance($orig->getInstance()); } }