| @@ 138-153 (lines=16) @@ | ||
| 135 | * |
|
| 136 | * @return \Spatie\DbDumper\Databases\MySql |
|
| 137 | */ |
|
| 138 | public function setTables($tables) |
|
| 139 | { |
|
| 140 | if (!empty($this->excludeTables)) { |
|
| 141 | throw CannotSetParameter::conflictParameters('tables', 'excludeTables'); |
|
| 142 | } |
|
| 143 | ||
| 144 | if (is_array($tables)) { |
|
| 145 | $this->tables = $tables; |
|
| 146 | ||
| 147 | return $this; |
|
| 148 | } |
|
| 149 | ||
| 150 | $this->tables = explode(' ', $tables); |
|
| 151 | ||
| 152 | return $this; |
|
| 153 | } |
|
| 154 | ||
| 155 | /** |
|
| 156 | * @param string/array $tables |
|
| @@ 160-175 (lines=16) @@ | ||
| 157 | * |
|
| 158 | * @return \Spatie\DbDumper\Databases\MySql |
|
| 159 | */ |
|
| 160 | public function setExcludeTables($tables) |
|
| 161 | { |
|
| 162 | if (!empty($this->tables)) { |
|
| 163 | throw CannotSetParameter::conflictParameters('excludeTables', 'tables'); |
|
| 164 | } |
|
| 165 | ||
| 166 | if (is_array($tables)) { |
|
| 167 | $this->excludeTables = $tables; |
|
| 168 | ||
| 169 | return $this; |
|
| 170 | } |
|
| 171 | ||
| 172 | $this->excludeTables = explode(' ', $tables); |
|
| 173 | ||
| 174 | return $this; |
|
| 175 | } |
|
| 176 | ||
| 177 | /** |
|
| 178 | * @return \Spatie\DbDumper\Databases\MySql |
|
| @@ 135-150 (lines=16) @@ | ||
| 132 | * |
|
| 133 | * @return \Spatie\DbDumper\Databases\MySql |
|
| 134 | */ |
|
| 135 | public function setTables($tables) |
|
| 136 | { |
|
| 137 | if (!empty($this->excludeTables)) { |
|
| 138 | throw CannotSetParameter::conflictParameters('tables', 'excludeTables'); |
|
| 139 | } |
|
| 140 | ||
| 141 | if (is_array($tables)) { |
|
| 142 | $this->tables = $tables; |
|
| 143 | ||
| 144 | return $this; |
|
| 145 | } |
|
| 146 | ||
| 147 | $this->tables = explode(' ', $tables); |
|
| 148 | ||
| 149 | return $this; |
|
| 150 | } |
|
| 151 | ||
| 152 | /** |
|
| 153 | * @param string/array $tables |
|
| @@ 157-172 (lines=16) @@ | ||
| 154 | * |
|
| 155 | * @return \Spatie\DbDumper\Databases\MySql |
|
| 156 | */ |
|
| 157 | public function setExcludeTables($tables) |
|
| 158 | { |
|
| 159 | if (!empty($this->tables)) { |
|
| 160 | throw CannotSetParameter::conflictParameters('excludeTables', 'tables'); |
|
| 161 | } |
|
| 162 | ||
| 163 | if (is_array($tables)) { |
|
| 164 | $this->excludeTables = $tables; |
|
| 165 | ||
| 166 | return $this; |
|
| 167 | } |
|
| 168 | ||
| 169 | $this->excludeTables = explode(' ', $tables); |
|
| 170 | ||
| 171 | return $this; |
|
| 172 | } |
|
| 173 | /** |
|
| 174 | * @return \Spatie\DbDumper\Databases\PostgreSql |
|
| 175 | */ |
|