| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function getConnection(): DbConn |
||
| 26 | { |
||
| 27 | if (isset(self::$conn)) { |
||
| 28 | return self::$conn; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** @var PDOConnection $pdo */ |
||
| 32 | $pdo = static::$em->getConnection()->getWrappedConnection(); |
||
| 33 | return self::$conn = $this->createDefaultDBConnection($pdo, static::$em->getConnection()->getDatabase()); |
||
| 34 | } |
||
| 35 | |||
| 59 |