1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/app/Ninja/Presenters/UserPresenter.php
2016-12-25 19:43:42 +02:00

15 lines
336 B
PHP

<?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;
}
}