high = $data['high'] ?? null; $model->low = $data['low'] ?? null; $model->medium = $data['medium'] ?? null; $model->unknown = $data['unknown'] ?? null; return $model; } private function __construct() { } public function getHigh(): ?int { return $this->high; } public function getLow(): ?int { return $this->low; } public function getMedium(): ?int { return $this->medium; } public function getUnknown(): ?int { return $this->unknown; } }