osb/app/Models/Service/Voip.php

20 lines
398 B
PHP
Raw Normal View History

<?php
namespace App\Models\Service;
class Voip extends \App\Models\Base\ServiceType
{
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;
}
public function getNameAttribute()
{
return $this->service_number;
}
}