| @@ 209-222 (lines=14) @@ | ||
| 206 | * |
|
| 207 | * @throws \Spatie\DbDumper\Exceptions\CannotSetParameter |
|
| 208 | */ |
|
| 209 | public function includeTables($includeTables) |
|
| 210 | { |
|
| 211 | if (! empty($this->excludeTables)) { |
|
| 212 | throw CannotSetParameter::conflictingParameters('includeTables', 'excludeTables'); |
|
| 213 | } |
|
| 214 | ||
| 215 | if (! is_array($includeTables)) { |
|
| 216 | $includeTables = explode(', ', $includeTables); |
|
| 217 | } |
|
| 218 | ||
| 219 | $this->includeTables = $includeTables; |
|
| 220 | ||
| 221 | return $this; |
|
| 222 | } |
|
| 223 | ||
| 224 | /** |
|
| 225 | * @param string|array $excludeTables |
|
| @@ 231-244 (lines=14) @@ | ||
| 228 | * |
|
| 229 | * @throws \Spatie\DbDumper\Exceptions\CannotSetParameter |
|
| 230 | */ |
|
| 231 | public function excludeTables($excludeTables) |
|
| 232 | { |
|
| 233 | if (! empty($this->includeTables)) { |
|
| 234 | throw CannotSetParameter::conflictingParameters('excludeTables', 'includeTables'); |
|
| 235 | } |
|
| 236 | ||
| 237 | if (! is_array($excludeTables)) { |
|
| 238 | $excludeTables = explode(', ', $excludeTables); |
|
| 239 | } |
|
| 240 | ||
| 241 | $this->excludeTables = $excludeTables; |
|
| 242 | ||
| 243 | return $this; |
|
| 244 | } |
|
| 245 | ||
| 246 | /** |
|
| 247 | * @param string $extraOption |
|