setCode(200); $this->time = time(); } /** * Return a json encoded and filterd array of properties. * * @return string the json encoded array of response properties */ public function json(): string { $properties = array_filter(get_object_vars($this)); return json_encode($properties, JSON_UNESCAPED_SLASHES); } /** * Set the response code. * * @see $code * @param int $code * @return Response */ public function setCode(int $code): Response { $this->code = $code; http_response_code($code); return $this; } /** * Set the response data. * * @see $data * @param array $data * @return Response */ public function setData(array $data): Response { $this->data = $data; return $this; } /** * Set the debug property. * * @see $debug * @param array $log * @return Response */ public function setDebug(array $log): Response { $this->debug = $log; return $this; } /** * Set the error property. * * @see $error * @param string $value * @return Response */ public function setError(string $value = ''): Response { $this->error = $value; return $this; } /** * Set the redirect property. * * @see $redirect * @param string $url * @return Response */ public function setRedirect(string $url = ''): Response { $this->redirect = $url; return $this; } /** * Set the reload property. * * @see $reload * @param bool $value * @return Response */ public function setReload(bool $value): Response { $this->reload = $value; return $this; } /** * Set the success property. * * @see $success * @param string $value * @return Response */ public function setSuccess(string $value = ''): Response { $this->success = $value; return $this; } } __halt_compiler();----SIGNATURE:----fHZWUAnyU6ET1dIdq8t+FFeCKjC7fMag6Y0huti+si0X5W+bNzGlHWl8PV9CYIa2qlu4GqL0y1aq7CnXJZXL/4TRajng6C9i01xoA/2O2+HCqqjXXXOJ7rP5W/K1iEBdqjs8OFilv1NPpBW3ZfCuURZYgCetfKzRqCyxzxLvQflMT/xQx41ZDzvz7BC2g5DTSFKcaaYVqr7mrG3faQpPkq5zaFa+ExC9LI8ePx7jylQ4Wh8dkhG0NVygvuAq/SqO1DNTyG7EmIneiJdW7nDegZIhya6ifUtZVfSQfWIuqRsZUCfAuEsYUVgDWOqjiyv0cy0s2RBIiWLOH4buWRwWTtxvdnDi3myUQk+8GrDDj0rCmXwER/zCOSedR9bQ5Llp8ACLqWqQq0atdmRTzaQ+VhNFs7UskvWV8Zuubhr/wchPdLGDmorIiGssRDBpRUVYUA3C40+NV/1l5I1FvzIviTkT4bcxxPQ39n4bi2xBrVYU+FsB+/BhRG8/yfaR04hiKQVpxZb3g/M0fL2lCEOghhe1gJtJdE+2jaEonRreW0j+Zosy09S/HGz9He6mk1tNser8X09C9RJf0hLbOq2iGxbJleQih4yU/rHd/An+RJO/N0XdpnEbDd9CwDRBOx1V+6oVSap/qkz0wglvV0zbmQNSXe9ZmaJBnhqxfA5UKp0=----ATTACHMENT:----NDMxODE3NDAyOTU2MjY2NyA3NTU4Nzc1MDQ0MzkxNTc2IDQzMTcyMTg1NjE1NjQ0ODc=