1 | <?php |
||
8 | class MySql extends DbDumper |
||
9 | { |
||
10 | protected $dbName; |
||
11 | protected $userName; |
||
12 | protected $password; |
||
13 | protected $host = 'localhost'; |
||
14 | protected $port; |
||
15 | protected $socket; |
||
16 | protected $dumpBinaryPath = ''; |
||
17 | protected $useExtendedInserts = true; |
||
18 | |||
19 | public function setDbName(string $dbName) : MySql |
||
25 | |||
26 | public function setUserName(string $userName) : MySql |
||
32 | |||
33 | public function setPassword(string $password) : MySql |
||
39 | |||
40 | public function setHost(string $host) : MySql |
||
46 | |||
47 | public function setPort(int $port) : MySql |
||
53 | |||
54 | public function setSocket(int $socket) : MySql |
||
60 | |||
61 | public function setDumpBinaryPath(string $dumpBinaryPath) : MySql |
||
71 | |||
72 | public function useExtendedInserts() : MySql |
||
78 | |||
79 | public function doNotUseExtendedInserts() : MySql |
||
85 | |||
86 | /** |
||
87 | * Dump the contents of the database to the given file. |
||
88 | */ |
||
89 | public function dumpToFile(string $dumpFile) |
||
107 | |||
108 | /** |
||
109 | * Get the command that should be performed to dump the database. |
||
110 | */ |
||
111 | public function getDumpCommand(string $dumpFile, string $temporaryCredentialsFile) : string |
||
128 | |||
129 | protected function guardAgainstIncompletedCredentials() |
||
137 | |||
138 | protected function getContentsOfCredentialsFile() : string |
||
150 | } |
||
151 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.