| @@ 56-65 (lines=10) @@ | ||
| 53 | /** |
|
| 54 | * {@inheritdoc} |
|
| 55 | */ |
|
| 56 | protected function parseOptions($options) |
|
| 57 | { |
|
| 58 | $options = parent::parseOptions($options); |
|
| 59 | ||
| 60 | if (empty($options['width']) || empty($options['height'])) { |
|
| 61 | throw new InvalidArgumentException; //todo |
|
| 62 | } |
|
| 63 | ||
| 64 | return $options; |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * {@inheritdoc} |
|
| @@ 72-81 (lines=10) @@ | ||
| 69 | /** |
|
| 70 | * {@inheritdoc} |
|
| 71 | */ |
|
| 72 | protected function parseOptions($options) |
|
| 73 | { |
|
| 74 | $options = parent::parseOptions($options); |
|
| 75 | ||
| 76 | if (empty($options['width']) && empty($options['height'])) { |
|
| 77 | throw new InvalidArgumentException; //todo |
|
| 78 | } |
|
| 79 | ||
| 80 | return $options; |
|
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * {@inheritdoc} |
|