respond($code, $message); } protected function respond(int $code, string $message): Result { $data = Context::get('respondData', []); return new Result($code, $message, $data); } protected function setData(array $data): AbstractController { Context::set('respondData', $data); return $this; } }