| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class PropertyBasedSorter extends AbstractSorter implements CollectionSorterInterface |
||
| 11 | { |
||
| 12 | use ResolvesPropertyValueTrait; |
||
| 13 | |||
| 14 | 21 | public function __construct(PropertyResolverInterface $resolver, string $property) |
|
| 18 | } |
||
| 19 | |||
| 20 | 15 | protected function getSortingFunction(string $order): callable |
|
| 29 |