status == InvoiceStatus::STATUS_PAID; } /** * @return bool */ public function isOpen() { return $this->status == InvoiceStatus::STATUS_OPEN; } /** * @return bool */ public function isOverdue() { return $this->status == InvoiceStatus::STATUS_OVERDUE; } }