| Total Complexity | 8 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class DHDriver implements DriverInterface |
||
| 17 | { |
||
| 18 | private DriverInterface $driver; |
||
| 19 | |||
| 20 | /** @var array<callable> */ |
||
| 21 | private array $flusherList = []; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @internal this driver can be only instantiated by its middleware |
||
| 25 | */ |
||
| 26 | public function __construct(DriverInterface $driver) |
||
| 27 | { |
||
| 28 | $this->driver = $driver; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritDoc} |
||
| 33 | */ |
||
| 34 | public function connect(array $params) |
||
| 35 | { |
||
| 36 | return new DHConnection( |
||
| 37 | $this->driver->connect($params), |
||
| 38 | $this |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritDoc} |
||
| 44 | */ |
||
| 45 | public function getDatabasePlatform(): AbstractPlatform |
||
| 46 | { |
||
| 47 | return $this->driver->getDatabasePlatform(); |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritDoc} |
||
| 52 | */ |
||
| 53 | public function getSchemaManager(DBALConnection $conn, AbstractPlatform $platform): AbstractSchemaManager |
||
| 54 | { |
||
| 55 | return $this->driver->getSchemaManager($conn, $platform); |
||
|
|
|||
| 56 | } |
||
| 57 | |||
| 58 | public function getExceptionConverter(): ExceptionConverter |
||
| 59 | { |
||
| 60 | return $this->driver->getExceptionConverter(); |
||
| 61 | } |
||
| 62 | |||
| 63 | public function addDHFlusher(callable $flusher): void |
||
| 64 | { |
||
| 65 | $this->flusherList[] = $flusher; |
||
| 66 | } |
||
| 67 | |||
| 68 | public function resetDHFlusherList(): void |
||
| 71 | } |
||
| 72 | |||
| 73 | public function getFlusherList(): array |
||
| 74 | { |
||
| 75 | return $this->flusherList; |
||
| 76 | } |
||
| 77 | } |
||
| 78 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.