/** * @param InvoiceInterface $invoice * * @return $this */ private function checkInvoice(InvoiceInterface $invoice) { if ($invoice->isFilled()) { $this->groups[] = self::INVOICE_GROUP; } return $this; }