App\Ninja\Transformers\VendorTransformer::includeInvoices PHP Method

includeInvoices() public method

public includeInvoices ( Vendor $vendor )
$vendor app\models\Vendor
    public function includeInvoices(Vendor $vendor)
    {
        $transformer = new InvoiceTransformer($this->account, $this->serializer);
        return $this->includeCollection($vendor->invoices, $transformer, ENTITY_INVOICE);
    }