1 | <?php |
||
8 | class ManipulationSequence implements IteratorAggregate |
||
9 | { |
||
10 | /** @var array */ |
||
11 | protected $groups = []; |
||
12 | |||
13 | public function __construct(array $sequenceArray = []) |
||
18 | |||
19 | /** |
||
20 | * @param string $operation |
||
21 | * @param string $argument |
||
22 | * |
||
23 | * @return $this |
||
24 | */ |
||
25 | public function addManipulation(string $operation, string $argument) |
||
33 | |||
34 | /** |
||
35 | * @param \Spatie\Image\ManipulationSequence $sequence |
||
36 | * |
||
37 | * @return $this |
||
38 | */ |
||
39 | public function merge(self $sequence) |
||
47 | |||
48 | public function mergeArray(array $sequenceArray) |
||
60 | |||
61 | /** |
||
62 | * @return $this |
||
63 | */ |
||
64 | public function startNewGroup() |
||
70 | |||
71 | public function toArray(): array |
||
75 | |||
76 | public function getGroups(): array |
||
80 | |||
81 | public function getIterator(): ArrayIterator |
||
85 | |||
86 | /** |
||
87 | * @param string $manipulationName |
||
88 | * |
||
89 | * @return $this |
||
90 | */ |
||
91 | public function removeManipulation(string $manipulationName) |
||
101 | |||
102 | public function isEmpty(): bool |
||
114 | |||
115 | protected function sanitizeManipulationSets(array $groups): array |
||
121 | |||
122 | /* |
||
123 | * Determine if the sequences contain a manipulation with the given name. |
||
124 | */ |
||
125 | public function getFirstManipulationArgument($searchManipulationName) |
||
135 | |||
136 | /* |
||
137 | * Determine if the sequences contain a manipulation with the given name. |
||
138 | */ |
||
139 | public function contains($searchManipulationName) |
||
151 | } |
||
152 |