| @@ 193-206 (lines=14) @@ | ||
| 190 | * |
|
| 191 | * @throws \Spatie\DbDumper\Exceptions\CannotSetParameter |
|
| 192 | */ |
|
| 193 | public function includeTables($includeTables) |
|
| 194 | { |
|
| 195 | if (! empty($this->excludeTables)) { |
|
| 196 | throw CannotSetParameter::conflictingParameters('includeTables', 'excludeTables'); |
|
| 197 | } |
|
| 198 | ||
| 199 | if (! is_array($includeTables)) { |
|
| 200 | $includeTables = explode(', ', $includeTables); |
|
| 201 | } |
|
| 202 | ||
| 203 | $this->includeTables = $includeTables; |
|
| 204 | ||
| 205 | return $this; |
|
| 206 | } |
|
| 207 | ||
| 208 | /** |
|
| 209 | * @param string|array $excludeTables |
|
| @@ 215-228 (lines=14) @@ | ||
| 212 | * |
|
| 213 | * @throws \Spatie\DbDumper\Exceptions\CannotSetParameter |
|
| 214 | */ |
|
| 215 | public function excludeTables($excludeTables) |
|
| 216 | { |
|
| 217 | if (! empty($this->includeTables)) { |
|
| 218 | throw CannotSetParameter::conflictingParameters('excludeTables', 'includeTables'); |
|
| 219 | } |
|
| 220 | ||
| 221 | if (! is_array($excludeTables)) { |
|
| 222 | $excludeTables = explode(', ', $excludeTables); |
|
| 223 | } |
|
| 224 | ||
| 225 | $this->excludeTables = $excludeTables; |
|
| 226 | ||
| 227 | return $this; |
|
| 228 | } |
|
| 229 | ||
| 230 | /** |
|
| 231 | * @param string $extraOption |
|