get($value); if ($user === null) { throw new InvalidArgumentException('User ' . $value . ' not found'); } $this->user = $user; } public function get(): IUser { return $this->user; } }