| @@ 125-135 (lines=11) @@ | ||
| 122 | /* |
|
| 123 | * Determine if the sequences contain a manipulation with the given name. |
|
| 124 | */ |
|
| 125 | public function getFirstManipulationArgument($searchManipulationName) |
|
| 126 | { |
|
| 127 | foreach ($this->groups as $group) { |
|
| 128 | foreach ($group as $name => $argument) { |
|
| 129 | if ($name === $searchManipulationName) { |
|
| 130 | return $argument; |
|
| 131 | } |
|
| 132 | } |
|
| 133 | return null; |
|
| 134 | } |
|
| 135 | } |
|
| 136 | ||
| 137 | /* |
|
| 138 | * Determine if the sequences contain a manipulation with the given name. |
|
| @@ 140-150 (lines=11) @@ | ||
| 137 | /* |
|
| 138 | * Determine if the sequences contain a manipulation with the given name. |
|
| 139 | */ |
|
| 140 | public function contains($searchManipulationName) |
|
| 141 | { |
|
| 142 | foreach ($this->groups as $group) { |
|
| 143 | foreach ($group as $name => $argument) { |
|
| 144 | if ($name === $searchManipulationName) { |
|
| 145 | return true; |
|
| 146 | } |
|
| 147 | } |
|
| 148 | return false; |
|
| 149 | } |
|
| 150 | } |
|
| 151 | } |
|
| 152 | ||