commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
JsonObject.php
1 <?php
2 
3 declare(strict_types=1);
10 namespace Commercetools\Base;
11 
12 use stdClass;
13 
14 interface 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)