/** * @return static */ public function withUserToken() { $userToken = $this->entity->getUserToken(); if ($userToken !== null) { $this->entityDTO->userToken = $this->dtoBuilderFactory->getUserTokenDTOBuilder($userToken)->build(); } return $this; }
public function addUserLogin(UserLogin $userLogin) { $this->userLogins[] = $userLogin; if ($userLogin->getResult()->isSuccess()) { $this->incrementTotalLogins(); } }