1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 17:31:35 +02:00
invoiceninja/app/Ninja/Presenters/ProductPresenter.php
2016-08-10 17:04:17 +03:00

21 lines
423 B
PHP

<?php namespace App\Ninja\Presenters;
use App\Libraries\Skype\HeroCard;
class ProductPresenter extends EntityPresenter
{
public function skypeBot($account)
{
$product = $this->entity;
$card = new HeroCard();
$card->setTitle($product->product_key);
$card->setSubitle($account->formatMoney($product->cost));
$card->setText($product->notes);
return $card;
}
}