Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
53 | 2 | private function bindNamedPdo($qualifer, $dsn, $user, $pass) |
|
54 | { |
||
55 | 2 | $this->bind(ExtendedPdoInterface::class) |
|
56 | 2 | ->annotatedWith($qualifer) |
|
57 | 2 | ->toConstructor( |
|
58 | 2 | ExtendedPdo::class, |
|
59 | 2 | "dsn={$qualifer}_dsn,username={$qualifer}_username,password={$qualifer}_password" |
|
60 | ); |
||
61 | 2 | $this->bind()->annotatedWith("{$qualifer}_dsn")->toInstance($dsn); |
|
62 | 2 | $this->bind()->annotatedWith("{$qualifer}_username")->toInstance($user); |
|
63 | 2 | $this->bind()->annotatedWith("{$qualifer}_password")->toInstance($pass); |
|
64 | 2 | } |
|
65 | } |
||
66 |