35 lines
601 B
PHP
35 lines
601 B
PHP
<?php
|
|
|
|
namespace App\Models\Service;
|
|
|
|
use App\Interfaces\ServiceItem;
|
|
use App\Models\Base\ServiceType;
|
|
use App\Traits\NextKey;
|
|
|
|
class Voip extends ServiceType implements ServiceItem
|
|
{
|
|
use NextKey;
|
|
const RECORD_ID = 'service__adsl';
|
|
|
|
protected $table = 'ab_service__voip';
|
|
|
|
/**
|
|
* Return the service address
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getServiceDescriptionAttribute(): string
|
|
{
|
|
return $this->service_address ?: 'VOIP';
|
|
}
|
|
|
|
/**
|
|
* Return the service number
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getServiceNameAttribute(): string
|
|
{
|
|
return $this->service_number;
|
|
}
|
|
} |