| 1 | <?php |
||
| 4 | class SearchResults extends MetadataCollection |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * Collection Items Key |
||
| 8 | * |
||
| 9 | * @const string |
||
| 10 | */ |
||
| 11 | const COLLECTION_ITEMS_KEY = 'matches'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Collection Cursor Key |
||
| 15 | * |
||
| 16 | * @const string |
||
| 17 | */ |
||
| 18 | const COLLECTION_CURSOR_KEY = 'start'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Collection has-more-items Key |
||
| 22 | * |
||
| 23 | * @const string |
||
| 24 | */ |
||
| 25 | const COLLECTION_HAS_MORE_ITEMS_KEY = 'more'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Process items and cast them |
||
| 29 | * to their respective Models |
||
| 30 | * |
||
| 31 | * @param array $items Unprocessed Items |
||
| 32 | * |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | 3 | protected function processItems(array $items) |
|
| 47 | } |
||
| 48 |