1 | <?php |
||
16 | final class BulkCommand extends BaseCommand implements Countable, IteratorAggregate, ArrayAccess |
||
17 | { |
||
18 | /** |
||
19 | * @var ArrayCollection |
||
20 | */ |
||
21 | private $collection; |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $commandClassName; |
||
26 | |||
27 | public static function of(string $className): self |
||
34 | |||
35 | public function init(): void |
||
41 | |||
42 | public function load($data, $formName = null): bool |
||
52 | |||
53 | public function validate($attributeNames = null, $clearErrors = true) |
||
59 | |||
60 | public function add($command): self |
||
66 | |||
67 | /** |
||
68 | * @inheritDoc |
||
69 | */ |
||
70 | public function count() |
||
74 | |||
75 | /** |
||
76 | * @inheritDoc |
||
77 | */ |
||
78 | public function getIterator() |
||
82 | |||
83 | /** |
||
84 | * @inheritDoc |
||
85 | */ |
||
86 | public function offsetExists($offset) |
||
90 | |||
91 | /** |
||
92 | * @inheritDoc |
||
93 | */ |
||
94 | public function offsetGet($offset) |
||
98 | |||
99 | /** |
||
100 | * @inheritDoc |
||
101 | */ |
||
102 | public function offsetSet($offset, $value) |
||
106 | |||
107 | /** |
||
108 | * @inheritDoc |
||
109 | */ |
||
110 | public function offsetUnset($offset) |
||
114 | } |
||
115 |