1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 08:51:34 +02:00
invoiceninja/app/Models/Presenters/ClientPresenter.php

20 lines
385 B
PHP
Raw Normal View History

<?php
namespace App\Models\Presenters;
2019-01-27 00:22:57 +01:00
/**
* Class ClientPresenter
* @package App\Models\Presenters
*/
class ClientPresenter extends EntityPresenter
{
2019-01-27 00:22:57 +01:00
/**
* @return string
*/
public function name()
{
return $this->entity->name ?: $this->entity->primary_contact->first()->first_name . ' '. $this->entity->primary_contact->first()->last_name;
}
}