1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00
invoiceninja/app/Models/Presenters/ClientContactPresenter.php
2020-06-10 15:21:11 +10:00

39 lines
765 B
PHP

<?php
/**
* Invoice Ninja (https://invoiceninja.com)
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://opensource.org/licenses/AAL
*/
namespace App\Models\Presenters;
/**
* Class ClientContactPresenter
* @package App\Models\Presenters
*/
class ClientContactPresenter extends EntityPresenter
{
/**
* @return string
*/
public function name()
{
return $this->entity->first_name . ' ' . $this->entity->last_name;
}
public function first_name()
{
return $this->entity->first_name ?: '';
}
public function last_name()
{
return $this->entity->last_name ?: '';
}
}