'', 'price' => 0, 'used' => 0, 'stock' => 0, 'status' => '', 'cpu_cnt' => 0, 'ram_cnt' => 0, 'disk_cnt' => 0, ]; public function __construct(array|null $data = null) { parent::__construct($data); } public function getCPUInfoUid(): int|null { return $this->attributes['cpuinfo_uid'] ?? null; } public function getRAMInfoUid(): int|null { return $this->attributes['raminfo_uid'] ?? null; } public function getDISKInfoUid(): int|null { return $this->attributes['diskinfo_uid'] ?? null; } //기본기능 public function getPrice(): int { return $this->attributes['price'] ?? 0; } public function getStock(): int { return $this->attributes['stock'] ?? 0; } public function getUsed(): int { return $this->attributes['used'] ?? 0; } public function getAvailable(): int { return $this->getStock() - $this->getUsed(); } public function getCPUCnt(): int { return $this->attributes['cpu_cnt'] ?? 0; } public function getRAMCnt(): int { return $this->attributes['ram_cnt'] ?? 0; } public function getDISKCnt(): int { return $this->attributes['disk_cnt'] ?? 0; } }