rate_plugin_prompt = $rate_plugin_prompt; } public function postpone( Request $request ): JSON_Response { try { if ( $this->rate_plugin_prompt->should_display() ) { $this->rate_plugin_prompt->restart_countdown(); } return $this->json( [] ); } catch ( DateTime_Creation_Exception $e ) { return $this->json( [], Code::INTERNAL_SERVER_ERROR ); } } public function hide( Request $request ): JSON_Response { if ( $this->rate_plugin_prompt->should_display() ) { $this->rate_plugin_prompt->hide(); } return $this->json( [] ); } }