/home/techb158/ileadtechnology.com/vendor/iyzico/iyzipay-php/src/Iyzipay
NameSizeModeActions
Model/-0755rm
Request/-0755rm
ApiResource.php5820644editdlrm
BaseModel.php2190644editdlrm
Constants.php800644editdlrm
Curl.php1980644editdlrm
DefaultHttpClient.php20890644editdlrm
FileBase64Encoder.php2720644editdlrm
HashGenerator.php2980644editdlrm
HttpClient.php2890644editdlrm
IyziAuthV2Generator.php13740644editdlrm
IyzipayResource.php31050644editdlrm
JsonBuilder.php17990644editdlrm
JsonConvertible.php1300644editdlrm
Options.php6150644editdlrm
Request.php9570644editdlrm
RequestFormatter.php6920644editdlrm
RequestStringBuilder.php72410644editdlrm
RequestStringConvertible.php1070644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/iyzico/iyzipay-php/src/Iyzipay/JsonBuilder.php (1799B)
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); } }