mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 21:52:35 +01:00
16 lines
372 B
PHP
16 lines
372 B
PHP
<?php namespace App\Ninja\Transformers;
|
|
|
|
use App\Models\InvoiceItem;
|
|
use League\Fractal;
|
|
use League\Fractal\TransformerAbstract;
|
|
|
|
class InvoiceItemTransformer extends TransformerAbstract
|
|
{
|
|
public function transform(InvoiceItem $item)
|
|
{
|
|
return [
|
|
'id' => (int) $item->public_id,
|
|
'product_key' => $item->product_key,
|
|
];
|
|
}
|
|
} |