1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-04 02:14:06 +02:00
This commit is contained in:
Robin Appelman 2017-07-30 15:50:24 +02:00
commit b3fbc1be3c
7 changed files with 91 additions and 10 deletions

View file

@ -21,6 +21,15 @@ class BaseProvider {
*/
protected $db;
/**
* BaseProvider constructor.
* @param Connection $connection
*
* The DBAL connection used will always be a PDO
* but phan isn't aware of this.
*
* @suppress PhanTypeMismatchArgument
*/
public function __construct(Connection $connection) {
$this->connection = $connection;
$this->db = new Database($connection->getWrappedConnection());