/** * Handle the command. * * @param FollowUserCommand $command * @return void */ public function handle(FollowUserCommand $command) { $user = $this->userRepo->findById($command->userId); $this->userRepo->follow($command->userIdToFollow, $user); return $user; }