1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 23:22:52 +01:00
invoiceninja/app/Ninja/Presenters/UserPresenter.php

15 lines
336 B
PHP
Raw Normal View History

<?php namespace App\Ninja\Presenters;
class UserPresenter extends EntityPresenter
{
public function email()
{
return htmlentities(sprintf('%s <%s>', $this->fullName(), $this->entity->email));
}
public function fullName()
{
return $this->entity->first_name . ' ' . $this->entity->last_name;
}
}