| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | class AuraSqlQueryUpdateProvider implements ProviderInterface |
||
| 14 | { |
||
| 15 | private string $db; |
||
| 16 | |||
| 17 | /** @param string $db The database type */ |
||
| 18 | #[AuraSqlQueryConfig] |
||
| 19 | public function __construct($db) |
||
| 20 | { |
||
| 21 | $this->db = $db; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritDoc} |
||
| 26 | */ |
||
| 27 | public function get(): UpdateInterface |
||
| 30 | } |
||
| 31 | } |
||
| 32 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: