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