| @@ 224-237 (lines=14) @@ | ||
| 221 | * |
|
| 222 | * @throws \Spatie\DbDumper\Exceptions\CannotSetParameter |
|
| 223 | */ |
|
| 224 | public function includeTables($includeTables) |
|
| 225 | { |
|
| 226 | if (! empty($this->excludeTables)) { |
|
| 227 | throw CannotSetParameter::conflictingParameters('includeTables', 'excludeTables'); |
|
| 228 | } |
|
| 229 | ||
| 230 | if (! is_array($includeTables)) { |
|
| 231 | $includeTables = explode(', ', $includeTables); |
|
| 232 | } |
|
| 233 | ||
| 234 | $this->includeTables = $includeTables; |
|
| 235 | ||
| 236 | return $this; |
|
| 237 | } |
|
| 238 | ||
| 239 | /** |
|
| 240 | * @param string|array $excludeTables |
|
| @@ 246-259 (lines=14) @@ | ||
| 243 | * |
|
| 244 | * @throws \Spatie\DbDumper\Exceptions\CannotSetParameter |
|
| 245 | */ |
|
| 246 | public function excludeTables($excludeTables) |
|
| 247 | { |
|
| 248 | if (! empty($this->includeTables)) { |
|
| 249 | throw CannotSetParameter::conflictingParameters('excludeTables', 'includeTables'); |
|
| 250 | } |
|
| 251 | ||
| 252 | if (! is_array($excludeTables)) { |
|
| 253 | $excludeTables = explode(', ', $excludeTables); |
|
| 254 | } |
|
| 255 | ||
| 256 | $this->excludeTables = $excludeTables; |
|
| 257 | ||
| 258 | return $this; |
|
| 259 | } |
|
| 260 | ||
| 261 | /** |
|
| 262 | * @param string $extraOption |
|