update rm deadcode

This commit is contained in:
baodev0
2026-09-27 11:42:40 +07:00
parent 82a71244ca
commit 3af59bd9c5
129 changed files with 5194 additions and 2698 deletions
+7
View File
@@ -43,6 +43,13 @@ class DomainPricing extends Model
return is_numeric($value) ? (int) $value : (string) $value;
}
public function orderPrice(int $years): int
{
$setupFee = is_numeric($this->setup_fee) ? (int) $this->setup_fee : 0;
return $setupFee + (int) $this->first_year + (int) $this->recurring_fee * (max(1, $years) - 1);
}
public function toDomainArray(): array
{
return [