userRepository->setMediator($this); $this->ui->setMediator($this); } public function printInfoAbout(string $user) { $this->ui->outputUserInfo($user); } public function getUser(string $username): string { return $this->userRepository->getUserName($username); } }