2022-04-02 07:06:34 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models\Supplier;
|
|
|
|
|
|
|
|
use App\Interfaces\SupplierItem;
|
|
|
|
use App\Models\Product\Email as ProductEmail;
|
|
|
|
|
|
|
|
final class Email extends Type implements SupplierItem
|
|
|
|
{
|
2022-06-30 13:51:20 +00:00
|
|
|
protected const category_name = 'Email Hosting';
|
|
|
|
|
2022-04-02 07:06:34 +00:00
|
|
|
protected $table = 'supplier_email';
|
|
|
|
|
|
|
|
/* INTERFACES */
|
|
|
|
|
|
|
|
public function getBillingIntervalAttribute(): int
|
|
|
|
{
|
|
|
|
return 4; // Yearly
|
|
|
|
}
|
|
|
|
|
2022-06-30 13:51:20 +00:00
|
|
|
public function products()
|
2022-04-02 07:06:34 +00:00
|
|
|
{
|
2022-08-05 12:21:17 +00:00
|
|
|
return $this->hasMany(ProductEmail::class,'supplier_item_id','id');
|
2022-04-02 07:06:34 +00:00
|
|
|
}
|
|
|
|
}
|