workspace = is_string($workspace) ? new Id($workspace) : $workspace; $this->user = is_string($user) ? new Id($user) : $user; $this->model = is_string($model) ? new Model($model) : $model; } public function param(string $key, mixed $value): self { $this->params[$key] = $value; return $this; } }