| 1 | <?php |
||
| 7 | abstract class AbstractMysqlDriver |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * |
||
| 12 | * @param MysqlConnectionAdapter $adapter |
||
| 13 | * @param strinbg $schema database name |
||
| 14 | */ |
||
| 15 | 23 | public function __construct(MysqlConnectionAdapter $adapter, $schema) |
|
| 20 | |||
| 21 | |||
| 22 | /** |
||
| 23 | * Disable innodbstats will increase speed of metadata lookups |
||
| 24 | * |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | 6 | protected function disableInnoDbStats() |
|
| 47 | |||
| 48 | |||
| 49 | /** |
||
| 50 | * Restore old innodbstats variable |
||
| 51 | * @return void |
||
| 52 | */ |
||
| 53 | 6 | protected function restoreInnoDbStats() |
|
| 61 | } |
||
| 62 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: