update rm deadcode
This commit is contained in:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user