| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class RetrievalByIdAndUsername implements Contract |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @param non-empty-string|int $id The id |
||
|
|
|||
| 28 | * @param non-empty-string $username The username |
||
| 29 | */ |
||
| 30 | public function __construct( |
||
| 31 | protected string|int $id, |
||
| 32 | protected string $username, |
||
| 33 | ) { |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @inheritDoc |
||
| 38 | * |
||
| 39 | * @param class-string<User> $user The user |
||
| 40 | * |
||
| 41 | * @psalm-suppress LessSpecificImplementedReturnType |
||
| 42 | */ |
||
| 43 | public function getRetrievalFields(string $user): array |
||
| 48 | ]; |
||
| 49 | } |
||
| 51 |