<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-05-27 11:23:29
 namespace App\Laravue; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Jsonable; class JsonResponse implements \JsonSerializable { const STATUS_SUCCESS = true; const STATUS_ERROR = false; private $data = []; private $error = ''; private $success = false; public function __construct($MS8L5 = [], string $dpI7X = '') { if (!$this->shouldBeJson($MS8L5)) { goto sOcQG; } $this->data = $MS8L5; sOcQG: $this->error = $dpI7X; $this->success = !empty($MS8L5); } public function success($MS8L5 = []) { $this->success = true; $this->data = $MS8L5; $this->error = ''; } public function fail($dpI7X = '') { $this->success = false; $this->error = $dpI7X; $this->data = []; } public function jsonSerialize() { return ["\x73\x75\x63\x63\x65\x73\163" => $this->success, "\x64\x61\164\141" => $this->data, "\x65\x72\162\157\162" => $this->error]; } private function shouldBeJson($xc3Po) : bool { return $xc3Po instanceof Arrayable || $xc3Po instanceof Jsonable || $xc3Po instanceof \ArrayObject || $xc3Po instanceof \JsonSerializable || is_array($xc3Po); } }