App\Ninja\Transformers\VendorTransformer::includeInvoices PHP 메소드

includeInvoices() 공개 메소드

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);
    }