commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CSequence.php
1<?php
2
3declare(strict_types=1);
10namespace Commercetools\Base;
11
12use stdClass;
13
18interface CSequence extends Collection, \ArrayAccess, \JsonSerializable, \IteratorAggregate
19{
20 public function toArray(): ?array;
21
22 #[\ReturnTypeWillChange]
23 public function jsonSerialize(): ?array;
24
30 public static function fromArray(array $data);
31
37 public function add($value);
38
42 public function at(int $index);
43
44 public function getIterator(): MapperIterator;
45
49 public function current();
50
54 public function end();
55
59 public function next();
60
64 public function key();
65
69 public function valid();
70
74 public function rewind();
75
76 #[\ReturnTypeWillChange]
81 public function offsetExists($offset);
82
83 #[\ReturnTypeWillChange]
88 public function offsetGet($offset);
89
90 #[\ReturnTypeWillChange]
97 public function offsetSet($offset, $value);
98
99 #[\ReturnTypeWillChange]
104 public function offsetUnset($offset);
105}
static fromArray(array $data)
offsetSet($offset, $value)