public function downloadLicense() { $app = new Application($this->app_id); $engine = $app->engine(); $engine->order = $this; $engine->downloadLicense(); exit; }