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