| 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 | 12 | public function __construct(PropertyResolverInterface $resolver, string $property, array $map) |
|
| 13 | { |
||
| 14 | 12 | parent::__construct($resolver, $property); |
|
| 15 | |||
| 16 | 12 | $this->map = $map; |
|
| 17 | } |
||
| 18 | |||
| 19 | 9 | protected function resolveValue($item): int |
|
| 22 | } |
||
| 23 | } |
||
| 24 |