osb/app/Models/Product/Domain.php

53 lines
742 B
PHP
Raw Normal View History

2019-07-02 05:28:27 +00:00
<?php
namespace App\Models\Product;
2020-02-19 12:37:45 +00:00
use Illuminate\Support\Collection;
use App\Interfaces\ProductSupplier;
use App\Models\Base\ProductType;
2019-07-02 05:28:27 +00:00
use App\Traits\NextKey;
2020-02-19 12:37:45 +00:00
class Domain extends ProductType implements ProductSupplier
2019-07-02 05:28:27 +00:00
{
use NextKey;
const RECORD_ID = '';
2020-02-19 12:37:45 +00:00
public function allowance(): Collection
{
// N/A
return collect();
}
public function allowance_string(): string
{
// N/A
return '';
}
public function getContractTermAttribute(): int
{
return 12;
}
2020-02-19 12:37:45 +00:00
public function getCostAttribute(): float
{
// N/A
return 0;
}
2020-02-20 11:54:28 +00:00
public function getSupplierAttribute()
{
return '';
}
public function getTypeAttribute()
{
return 'Domain Name';
}
public function hasUsage(): bool
{
return FALSE;
}
2019-07-02 05:28:27 +00:00
}