2018-06-19 12:31:49 +00:00
|
|
|
<?php
|
|
|
|
|
2019-06-07 06:54:27 +00:00
|
|
|
namespace App\Models\Service;
|
2018-06-19 12:31:49 +00:00
|
|
|
|
2019-06-13 04:32:34 +00:00
|
|
|
use App\Traits\NextKey;
|
|
|
|
|
2019-06-07 06:54:27 +00:00
|
|
|
class Voip extends \App\Models\Base\ServiceType
|
2018-06-19 12:31:49 +00:00
|
|
|
{
|
2019-06-13 04:32:34 +00:00
|
|
|
use NextKey;
|
|
|
|
|
|
|
|
const RECORD_ID = 'service__adsl';
|
|
|
|
|
2018-06-19 12:31:49 +00:00
|
|
|
protected $table = 'ab_service__voip';
|
|
|
|
|
2018-11-21 03:37:17 +00:00
|
|
|
public function getFullNameAttribute()
|
|
|
|
{
|
|
|
|
return ($this->service_number AND $this->service_address)
|
|
|
|
? sprintf('%s: %s',$this->service_number, $this->service_address)
|
|
|
|
: $this->name;
|
|
|
|
}
|
|
|
|
|
2018-06-19 12:31:49 +00:00
|
|
|
public function getNameAttribute()
|
|
|
|
{
|
|
|
|
return $this->service_number;
|
|
|
|
}
|
|
|
|
}
|