1 | <?php |
||
15 | final class BulkCommand extends BaseCommand implements Countable, IteratorAggregate, ArrayAccess |
||
16 | { |
||
17 | /** |
||
18 | * @var ArrayCollection |
||
19 | */ |
||
20 | private $collection; |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $commandClassName; |
||
25 | |||
26 | public static function of(string $className): self |
||
33 | |||
34 | public function init(): void |
||
40 | |||
41 | public function load($data, $formName = null): bool |
||
49 | |||
50 | public function add($command): self |
||
56 | |||
57 | /** |
||
58 | * @inheritDoc |
||
59 | */ |
||
60 | public function count() |
||
64 | |||
65 | /** |
||
66 | * @inheritDoc |
||
67 | */ |
||
68 | public function getIterator() |
||
72 | |||
73 | /** |
||
74 | * @inheritDoc |
||
75 | */ |
||
76 | public function offsetExists($offset) |
||
80 | |||
81 | /** |
||
82 | * @inheritDoc |
||
83 | */ |
||
84 | public function offsetGet($offset) |
||
88 | |||
89 | /** |
||
90 | * @inheritDoc |
||
91 | */ |
||
92 | public function offsetSet($offset, $value) |
||
96 | |||
97 | /** |
||
98 | * @inheritDoc |
||
99 | */ |
||
100 | public function offsetUnset($offset) |
||
104 | } |
||
105 |