1 | <?php |
||
19 | class ReverseComparator extends Comparator |
||
20 | { |
||
21 | /** |
||
22 | * @var ComparatorInterface |
||
23 | */ |
||
24 | protected $comparator; |
||
25 | |||
26 | /** |
||
27 | * @param callable $comparator |
||
28 | */ |
||
29 | public function __construct(callable $comparator) |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function compare($a, $b) |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function reverse() |
||
49 | } |
||
50 |