40 lines
920 B
PHP
40 lines
920 B
PHP
<?php
|
|
|
|
namespace App\Models\Product;
|
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
use App\Interfaces\ProductItem;
|
|
use App\Models\Invoice;
|
|
use App\Models\Service\Generic as ServiceGeneric;
|
|
use App\Models\Supplier\Generic as SupplierGeneric;
|
|
|
|
final class Generic extends Type implements ProductItem
|
|
{
|
|
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;
|
|
// The model that the supplier supplies
|
|
const SupplierModel = SupplierGeneric::class;
|
|
|
|
/* INTERFACES */
|
|
|
|
public function allowance(): Collection
|
|
{
|
|
// TODO: Implement allowance() method.
|
|
}
|
|
|
|
public function allowance_string(): string
|
|
{
|
|
// TODO: Implement allowance_string() method.
|
|
}
|
|
|
|
public function hasUsage(): bool
|
|
{
|
|
return FALSE;
|
|
}
|
|
} |