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