logger = $logger; $this->templates_path = $templates_path; $this->report_service = $report_service; } /** * Send the delivery report * * @return void */ public function send_delivery_report() { $this->logger->log_info( 'Hook executed', __FUNCTION__, __CLASS__ ); try { $this->report_service->send_delivery_report_for_current_store(); } catch ( \Throwable $e ) { $this->logger->log_throwable( $e, __FUNCTION__, __CLASS__ ); } } }