mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-04 02:14:06 +02:00
add phan
This commit is contained in:
parent
6adcdc2362
commit
b3fbc1be3c
7 changed files with 91 additions and 10 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue