osb/app/Models/Product/SSL.php

42 lines
850 B
PHP
Raw Permalink Normal View History

2019-07-02 05:28:27 +00:00
<?php
namespace App\Models\Product;
use Illuminate\Support\Collection;
2022-02-01 05:40:46 +00:00
use App\Interfaces\ProductItem;
use App\Models\Invoice;
2022-02-01 05:40:46 +00:00
use App\Models\Service\SSL as ServiceSSL;
use App\Models\Supplier\SSL as SupplierSSL;
2019-07-02 05:28:27 +00:00
2022-02-01 05:40:46 +00:00
final class SSL extends Type implements ProductItem
2019-07-02 05:28:27 +00:00
{
2022-02-01 05:40:46 +00:00
protected $table = 'product_ssl';
2019-07-02 05:28:27 +00:00
2022-02-01 05:40:46 +00:00
// The model that is referenced when this product is ordered
protected string $order_model = ServiceSSL::class;
// When comparing billing/pricing/charging, what metric to normalise to
const DefaultBill = Invoice::BILL_MONTHLY;
2023-05-04 00:02:25 +00:00
// The model that the supplier supplies
const SupplierModel = SupplierSSL::class;
2022-02-01 05:40:46 +00:00
/* INTERFACES */
public function allowance(): Collection
{
// N/A
return collect();
}
public function allowance_string(): string
{
// N/A
return '';
}
public function hasUsage(): bool
{
return FALSE;
}
2019-07-02 05:28:27 +00:00
}