devtoolboxuk /
storage
| 1 | <?php |
||
| 2 | |||
| 3 | namespace devtoolboxuk\storage\Adapter; |
||
| 4 | |||
| 5 | use Doctrine\DBAL\DriverManager; |
||
| 6 | |||
| 7 | class DoctrineAdapter extends AbstractAdapter implements AdapterInterface |
||
| 8 | { |
||
| 9 | function connection() |
||
|
0 ignored issues
–
show
|
|||
| 10 | { |
||
| 11 | return DriverManager::getConnection(parent::getAdapterOptions()); |
||
| 12 | } |
||
| 13 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.