commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CMap.php
1<?php
2
3declare(strict_types=1);
10namespace Commercetools\Base;
11
12use stdClass;
13
17interface CMap extends Collection, \ArrayAccess, \JsonSerializable, \IteratorAggregate
18{
24 public static function of($data = null);
25
29 public function toArray(): ?array;
30
31 #[\ReturnTypeWillChange]
35 public function jsonSerialize(): ?array;
36
41 public static function fromStdClass(stdClass $data = null);
42
48 public static function fromArray(array $data);
49
55 public function put(string $key, $value);
56
60 public function at(string $key);
61
65 public function with(string $key, callable $callable = null);
66
67 public function getIterator(): MapperIterator;
68
72 public function current();
73
77 public function next();
78
82 public function key();
83
87 public function valid();
88
92 public function rewind();
93
94 #[\ReturnTypeWillChange]
99 public function offsetExists($offset);
100
101 #[\ReturnTypeWillChange]
106 public function offsetGet($offset);
107
108 #[\ReturnTypeWillChange]
115 public function offsetSet($offset, $value);
116
117 #[\ReturnTypeWillChange]
122 public function offsetUnset($offset);
123}
put(string $key, $value)
static fromArray(array $data)
static fromStdClass(stdClass $data=null)
with(string $key, callable $callable=null)
offsetSet($offset, $value)
static of($data=null)