public function includeInvitations(Invoice $invoice) { $transformer = new InvitationTransformer($this->account, $this->serializer); return $this->includeCollection($invoice->invitations, $transformer, ENTITY_INVITATION); }