| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class UserItemDataProvider implements ItemDataProviderInterface, RestrictedDataProviderInterface |
||
| 16 | { |
||
| 17 | public function __construct( |
||
| 18 | private UserRepository $repository, |
||
| 19 | private NameConvention $nameConvention |
||
| 20 | ) { |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getItem(string $resourceClass, $id, string $operationName = null, array $context = []) |
||
| 30 | } |
||
| 31 | |||
| 32 | public function supports(string $resourceClass, string $operationName = null, array $context = []): bool |
||
| 35 | } |
||
| 36 | } |
||
| 37 |