| 1 | <?php |
||
| 8 | class ManipulationSets implements IteratorAggregate |
||
| 9 | { |
||
| 10 | /** @var array */ |
||
| 11 | protected $manipulationSets = []; |
||
| 12 | |||
| 13 | /** @var bool */ |
||
| 14 | protected $openNewSet = true; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $operation |
||
| 18 | * @param string $argument |
||
| 19 | * |
||
| 20 | * @return static |
||
| 21 | */ |
||
| 22 | public function addManipulation(string $operation, string $argument) |
||
| 36 | |||
| 37 | public function merge(ManipulationSets $manipulationSets) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return static |
||
| 44 | */ |
||
| 45 | public function startNewSet() |
||
| 51 | |||
| 52 | public function toArray(): array |
||
| 56 | |||
| 57 | public function getSets(): array |
||
| 61 | |||
| 62 | public function removeManipulation(string $name) |
||
| 72 | |||
| 73 | public function getIterator(): ArrayIterator |
||
| 77 | } |