osb/app/Models/Product/Host.php

41 lines
909 B
PHP
Raw Normal View History

2019-07-02 15:28:27 +10:00
<?php
namespace App\Models\Product;
2022-02-01 16:40:46 +11:00
use Illuminate\Support\Collection;
2019-07-02 15:28:27 +10:00
2022-02-01 16:40:46 +11:00
use App\Interfaces\ProductItem;
use App\Models\Invoice;
2022-02-01 16:40:46 +11:00
use App\Models\Service\Host as ServiceHost;
use App\Models\Supplier\Host as SupplierHost;
final class Host extends Type implements ProductItem
2019-07-02 15:28:27 +10:00
{
2022-02-01 16:40:46 +11:00
protected $table = 'product_host';
// The model that is referenced when this product is ordered
protected string $order_model = ServiceHost::class;
// When comparing billing/pricing/charging, what metric to normalise to
const DefaultBill = Invoice::BILL_MONTHLY;
2023-05-04 10:02:25 +10:00
// The model that the supplier supplies
const SupplierModel = SupplierHost::class;
2022-02-01 16:40:46 +11:00
/* INTERFACES */
2022-02-01 16:40:46 +11:00
public function allowance(): Collection
{
// TODO: Implement allowance() method.
}
public function allowance_string(): string
{
// TODO: Implement allowance_string() method.
2022-08-01 21:06:57 +10:00
return '';
2022-02-01 16:40:46 +11:00
}
2023-05-05 15:48:24 +10:00
public function hasUsage(): bool
2022-02-01 16:40:46 +11:00
{
2023-05-05 15:48:24 +10:00
return FALSE;
2022-02-01 16:40:46 +11:00
}
2019-07-02 15:28:27 +10:00
}