osb/app/Models/Service/Voip.php

35 lines
601 B
PHP
Raw Normal View History

<?php
namespace App\Models\Service;
2020-02-08 11:51:50 +00:00
use App\Interfaces\ServiceItem;
use App\Models\Base\ServiceType;
use App\Traits\NextKey;
2020-02-08 11:51:50 +00:00
class Voip extends ServiceType implements ServiceItem
{
use NextKey;
const RECORD_ID = 'service__adsl';
protected $table = 'ab_service__voip';
2020-02-08 11:51:50 +00:00
/**
* Return the service address
*
* @return string
*/
public function getServiceDescriptionAttribute(): string
2018-11-21 03:37:17 +00:00
{
2020-02-08 11:51:50 +00:00
return $this->service_address ?: 'VOIP';
2018-11-21 03:37:17 +00:00
}
2020-02-08 11:51:50 +00:00
/**
* Return the service number
*
* @return string
*/
public function getServiceNameAttribute(): string
{
return $this->service_number;
}
}