1 | <?php |
||
9 | abstract class GenericPdo implements AdapterInterface |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | 2 | public function execute($query) |
|
29 | |||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 2 | public function query($query) |
|
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | 1 | public function quoteValue($value) |
|
61 | |||
62 | /** |
||
63 | * {@ineritdoc} |
||
64 | * @return \PDO |
||
65 | */ |
||
66 | 1 | public function getResource() |
|
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | abstract public function getCurrentSchema(); |
||
75 | } |
||
76 |
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: