mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
* Fixes for company factor * Add dates to create test data * Fixes for transformers, use faker to generate random dates * Bump to PHP 7.4git add app/Http/Requests/User/DetachCompanyUserRequest.php * Fixes for route model binding
33 lines
715 B
PHP
33 lines
715 B
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2019. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://opensource.org/licenses/AAL
|
|
*/
|
|
|
|
namespace App\Models\Presenters;
|
|
|
|
/**
|
|
* Class UserPresenter
|
|
* @package App\Models\Presenters
|
|
*/
|
|
class UserPresenter extends EntityPresenter
|
|
{
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function name()
|
|
{
|
|
$first_name = isset($this->entity->first_name) ? $this->entity->first_name : '';
|
|
$last_name = isset($this->entity->last_name) ? $this->entity->last_name : '';
|
|
|
|
return $first_name . ' ' . $last_name;
|
|
}
|
|
|
|
}
|