registerServices(); } /** * Register services */ protected function registerServices() { // This method would be more useful if you're using a dependency injection container // For now, it's just a placeholder to maintain structure for future expansion } /** * Register invoice number service */ protected function registerInvoiceNumberService() { // Create and store the service instance $this->service = new InvoiceNumberService(); } /** * Get the invoice number service * * @return InvoiceNumberService The invoice number service */ public function getInvoiceNumberService() { // Create the service if it doesn't exist if ($this->service === null) { $this->service = new InvoiceNumberService(); } return $this->service; } }