| @@ 125-132 (lines=8) @@ | ||
| 122 | * |
|
| 123 | * @return bool |
|
| 124 | */ |
|
| 125 | protected static function validateIsArray($option) |
|
| 126 | { |
|
| 127 | if (!is_array($option)) { |
|
| 128 | throw new \InvalidArgumentException('extra.' . static::CONFIG_MAIN_KEY . '[]' . static::OPTION_KEY_INPUT . ' should be array!'); |
|
| 129 | } |
|
| 130 | ||
| 131 | return true; |
|
| 132 | } |
|
| 133 | ||
| 134 | /** |
|
| 135 | * @param string $option |
|
| @@ 139-146 (lines=8) @@ | ||
| 136 | * |
|
| 137 | * @return bool |
|
| 138 | */ |
|
| 139 | protected static function validateIsString($option) |
|
| 140 | { |
|
| 141 | if (!is_string($option)) { |
|
| 142 | throw new \InvalidArgumentException('extra.' . static::CONFIG_MAIN_KEY . '[]' . static::OPTION_KEY_OUTPUT . ' should string!'); |
|
| 143 | } |
|
| 144 | ||
| 145 | return true; |
|
| 146 | } |
|
| 147 | } |
|
| 148 | ||