1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/app/Ninja/Presenters/CreditPresenter.php

28 lines
458 B
PHP
Raw Normal View History

2017-01-30 20:40:43 +01:00
<?php
namespace App\Ninja\Presenters;
2015-11-12 21:36:28 +01:00
use Utils;
/**
2017-01-30 20:40:43 +01:00
* Class CreditPresenter.
*/
class CreditPresenter extends EntityPresenter
{
/**
* @return string
*/
2015-11-12 21:36:28 +01:00
public function client()
{
return $this->entity->client ? $this->entity->client->getDisplayName() : '';
}
/**
* @return \DateTime|string
*/
2015-11-12 21:36:28 +01:00
public function credit_date()
{
return Utils::fromSqlDate($this->entity->credit_date);
}
2016-05-23 11:26:08 +02:00
}