| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 16 | class AuraSqlReplicationDbProvider implements ProviderInterface, SetContextInterface |
||
| 17 | { |
||
| 18 | private InjectorInterface $injector; |
||
| 19 | private string $context = ''; |
||
| 20 | |||
| 21 | public function __construct(InjectorInterface $injector) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritDoc} |
||
| 28 | * |
||
| 29 | * @param string $context |
||
| 30 | */ |
||
| 31 | public function setContext($context): void |
||
| 32 | { |
||
| 33 | $this->context = $context; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritDoc} |
||
| 38 | */ |
||
| 39 | public function get(): ExtendedPdoInterface |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: