| Total Complexity | 2 | 
| Total Lines | 14 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 8 | class MapBasedSorter extends PropertyBasedSorter implements CollectionSorterInterface | ||
| 9 | { | ||
| 10 | protected array $map = []; | ||
| 11 | |||
| 12 | 30 | public function __construct(PropertyResolverInterface $resolver, string $property, array $map) | |
| 13 |     { | ||
| 14 | 30 | parent::__construct($resolver, $property); | |
| 15 | |||
| 16 | 30 | $this->map = $map; | |
| 17 | } | ||
| 18 | |||
| 19 | 28 | protected function resolveValue(object $item): int | |
| 22 | } | ||
| 23 | } | ||
| 24 |