mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-10 12:24:50 +00:00
Expanded API code, wrote a bunch new transformers as well.
This commit is contained in:
@@ -26,12 +26,26 @@ namespace FireflyIII\Transformers;
|
||||
|
||||
use FireflyIII\Models\Transaction;
|
||||
use League\Fractal\TransformerAbstract;
|
||||
use Symfony\Component\HttpFoundation\ParameterBag;
|
||||
|
||||
/**
|
||||
* Class TransactionTransformer
|
||||
*/
|
||||
class TransactionTransformer extends TransformerAbstract
|
||||
{
|
||||
/** @var ParameterBag */
|
||||
protected $parameters;
|
||||
|
||||
/**
|
||||
* BillTransformer constructor.
|
||||
*
|
||||
* @param ParameterBag $parameters
|
||||
*/
|
||||
public function __construct(ParameterBag $parameters)
|
||||
{
|
||||
$this->parameters = $parameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Transaction $transaction
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user