attributes['serviceinfo_uid']); } public function getItemType(): string { return $this->attributes['item_type']; } public function getItemUid(): int { return intval($this->attributes['item_uid']); } public function getBillingCycle(): string { return $this->attributes['billing_cycle']; } public function getPrice(): int { return intval($this->attributes['price']); } public function getAmount(): int { return intval($this->attributes['amount']); } public function getView_Price(): string { return sprintf("원가:%s원 , 제공가:%s원", number_format($this->getPrice()), number_format($this->getAmount())); } public function getView_Sale(): string { $result = ""; //할인시 if ($this->getPrice() > $this->getAmount()) { $result = ICONS['SALE_DOWN']; } //부가가치시 if ($this->getPrice() < $this->getAmount()) { $result = ICONS['SALE_UP']; } return $result; } public function getView_BillingCycle(): string { return $this->getBillingCycle() == "month" ? "" : ICONS['ONETIME'];; } }