| 1 | <?php |
||
| 18 | class SortService extends AbstractService |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * First sorting of caches |
||
| 23 | * |
||
| 24 | * @param Cache $a |
||
| 25 | * @param Cache $b |
||
| 26 | * |
||
| 27 | * @return int |
||
| 28 | */ |
||
| 29 | public function cmp(Cache $a, Cache $b) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Sorting of given array |
||
| 46 | * |
||
| 47 | * @param array $array |
||
| 48 | * |
||
| 49 | * @return array |
||
| 50 | */ |
||
| 51 | public function sortArray($array) |
||
| 59 | } |
||
| 60 |