21 lines
468 B
PHP
21 lines
468 B
PHP
<?php
|
|
|
|
namespace App\Models\Service;
|
|
|
|
class Adsl extends \App\Models\Base\ServiceType
|
|
{
|
|
// @todo column service_id can be removed.
|
|
protected $table = 'ab_service__adsl';
|
|
|
|
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 ?: $this->service_address;
|
|
}
|
|
} |