| @@ 56-67 (lines=12) @@ | ||
| 53 | * |
|
| 54 | * @return $this |
|
| 55 | */ |
|
| 56 | public function orientation(string $orientation) |
|
| 57 | { |
|
| 58 | if (! $this->validateManipulation($orientation, 'orientation')) { |
|
| 59 | throw InvalidManipulation::invalidParameter( |
|
| 60 | 'orientation', |
|
| 61 | $orientation, |
|
| 62 | $this->getValidManipulationOptions('orientation') |
|
| 63 | ); |
|
| 64 | } |
|
| 65 | ||
| 66 | return $this->addManipulation('orientation', $orientation); |
|
| 67 | } |
|
| 68 | ||
| 69 | /** |
|
| 70 | * @param string $cropMethod |
|
| @@ 347-358 (lines=12) @@ | ||
| 344 | * |
|
| 345 | * @return $this |
|
| 346 | */ |
|
| 347 | public function format(string $format) |
|
| 348 | { |
|
| 349 | if (! $this->validateManipulation($format, 'format')) { |
|
| 350 | throw InvalidManipulation::invalidParameter( |
|
| 351 | 'format', |
|
| 352 | $format, |
|
| 353 | $this->getValidManipulationOptions('format') |
|
| 354 | ); |
|
| 355 | } |
|
| 356 | ||
| 357 | return $this->addManipulation('format', $format); |
|
| 358 | } |
|
| 359 | ||
| 360 | /** |
|
| 361 | * @param string $filterName |
|
| @@ 365-376 (lines=12) @@ | ||
| 362 | * |
|
| 363 | * @return $this |
|
| 364 | */ |
|
| 365 | protected function filter(string $filterName) |
|
| 366 | { |
|
| 367 | if (! $this->validateManipulation($filterName, 'filter')) { |
|
| 368 | throw InvalidManipulation::invalidParameter( |
|
| 369 | 'filter', |
|
| 370 | $filterName, |
|
| 371 | $this->getValidManipulationOptions('filter') |
|
| 372 | ); |
|
| 373 | } |
|
| 374 | ||
| 375 | return $this->addManipulation('filter', $filterName); |
|
| 376 | } |
|
| 377 | ||
| 378 | /** |
|
| 379 | * @return $this |
|