commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
JsonObject.php
1<?php
2
3declare(strict_types=1);
10namespace Commercetools\Base;
11
12use stdClass;
13
14interface JsonObject extends \JsonSerializable
15{
19 public function get(string $field);
20
25 public static function of($data = null);
26
31 public static function fromArray(array $data = []);
32
37 public static function fromStdClass(stdClass $data = null);
38
42 public function with(callable $callable = null);
43}
with(callable $callable=null)
static fromArray(array $data=[])
static fromStdClass(stdClass $data=null)