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