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