1 | <?php |
||
5 | class SearchResult |
||
6 | { |
||
7 | |||
8 | public static function fromList($valueType, array $values) |
||
18 | |||
19 | public static function fromValue($valueType, \stdClass $value) |
||
23 | |||
24 | const TYPE_RECORD = 0; |
||
25 | |||
26 | const TYPE_STORY = 1; |
||
27 | |||
28 | /** |
||
29 | * @var int A SearchResult::TYPE_* constant |
||
30 | */ |
||
31 | private $type = self::TYPE_RECORD; |
||
32 | |||
33 | /** |
||
34 | * @var int |
||
35 | */ |
||
36 | private $databoxId; |
||
37 | |||
38 | /** |
||
39 | * @var int |
||
40 | */ |
||
41 | private $collectionId; |
||
42 | |||
43 | /** |
||
44 | * @var int |
||
45 | */ |
||
46 | private $recordId; |
||
47 | |||
48 | /** |
||
49 | * @var int |
||
50 | */ |
||
51 | private $version; |
||
52 | |||
53 | /** |
||
54 | * @param int $type |
||
55 | * @param int $databoxId |
||
56 | * @param int $collectionId |
||
57 | * @param int $recordId |
||
58 | * @param int $version |
||
59 | */ |
||
60 | public function __construct($type, $databoxId, $collectionId, $recordId, $version) |
||
68 | |||
69 | /** |
||
70 | * @return int |
||
71 | */ |
||
72 | public function getType() |
||
76 | |||
77 | /** |
||
78 | * @return int |
||
79 | */ |
||
80 | public function getDataboxId() |
||
84 | |||
85 | /** |
||
86 | * @return int |
||
87 | */ |
||
88 | public function getCollectionId() |
||
92 | |||
93 | /** |
||
94 | * @return int |
||
95 | */ |
||
96 | public function getRecordId() |
||
100 | |||
101 | /** |
||
102 | * @return int |
||
103 | */ |
||
104 | public function getVersion() |
||
108 | } |
||
109 |