App\Ninja\Transformers\InvoiceTransformer::includePayments PHP Method

includePayments() public method

public includePayments ( Invoice $invoice )
$invoice app\models\Invoice
    public function includePayments(Invoice $invoice)
    {
        $transformer = new PaymentTransformer($this->account, $this->serializer, $invoice);
        return $this->includeCollection($invoice->payments, $transformer, ENTITY_PAYMENT);
    }