$width * @param int<0, max> $height */ public function __construct( private readonly int $width, private readonly int $height ) {} /** * @return int<0, max> */ public function getWidth(): int { return $this->width; } /** * @return int<0, max> */ public function getHeight(): int { return $this->height; } /** * @throws ZeroImageDimensionException */ public static function fromProcessingTask(TaskInterface $task): self { $result = ImageProcessingInstructions::fromProcessingTask($task); return new self($result->width, $result->height); } }