mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 13:42:49 +01:00
28 lines
462 B
PHP
28 lines
462 B
PHP
<?php namespace App\Ninja\Presenters;
|
|
|
|
use Utils;
|
|
|
|
/**
|
|
* Class ExpensePresenter
|
|
*/
|
|
class ExpensePresenter extends EntityPresenter
|
|
{
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function vendor()
|
|
{
|
|
return $this->entity->vendor ? $this->entity->vendor->getDisplayName() : '';
|
|
}
|
|
|
|
/**
|
|
* @return \DateTime|string
|
|
*/
|
|
public function expense_date()
|
|
{
|
|
return Utils::fromSqlDate($this->entity->expense_date);
|
|
}
|
|
|
|
}
|