/** * constructor * @param Setup $app */ public function __construct(Setup $app) { $this->app = $app; $this->request = $app->request; $this->response = $app->response; $this->requestBodyArr = json_decode($app->request()->getBody(), true); }