App\Ninja\Transformers\ClientTransformer::includeInvoices PHP Méthode

includeInvoices() public méthode

public includeInvoices ( Client $client ) : League\Fractal\Resource\Collection
$client app\models\Client
Résultat League\Fractal\Resource\Collection
    public function includeInvoices(Client $client)
    {
        $transformer = new InvoiceTransformer($this->account, $this->serializer, $client);
        return $this->includeCollection($client->invoices, $transformer, ENTITY_INVOICE);
    }