mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 07:02:34 +01:00
15 lines
336 B
PHP
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;
|
|
}
|
|
}
|