osb/app/Models/Product/Generic.php

40 lines
920 B
PHP
Raw Normal View History

<?php
namespace App\Models\Product;
2022-02-01 05:40:46 +00:00
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\Generic as ServiceGeneric;
use App\Models\Supplier\Generic as SupplierGeneric;
final class Generic extends Type implements ProductItem
{
2022-02-01 05:40:46 +00:00
protected $table = 'product_generic';
// The model that is referenced when this product is ordered
protected string $order_model = ServiceGeneric::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 = SupplierGeneric::class;
2022-02-01 05:40:46 +00:00
/* INTERFACES */
public function allowance(): Collection
{
// TODO: Implement allowance() method.
}
public function allowance_string(): string
{
// TODO: Implement allowance_string() method.
}
2023-05-05 05:48:24 +00:00
public function hasUsage(): bool
2022-02-01 05:40:46 +00:00
{
2023-05-05 05:48:24 +00:00
return FALSE;
2022-02-01 05:40:46 +00:00
}
2023-05-05 05:48:24 +00:00
}