| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class DoctrineConnectionCheck extends AbstractCheck |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var Connection |
||
| 13 | */ |
||
| 14 | protected $db; |
||
| 15 | |||
| 16 | public function __construct(string $label, Connection $db) |
||
| 17 | { |
||
| 18 | parent::__construct($label); |
||
| 19 | $this->db = $db; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Check Doctrine connection |
||
| 24 | * |
||
| 25 | * @return Result |
||
| 26 | */ |
||
| 27 | public function checkStatus(): Result |
||
| 36 | } |
||
| 37 | } |
||
| 38 |