1 | <?php |
||
14 | class AnalyticModel |
||
15 | { |
||
16 | protected $collection; |
||
17 | protected $route; |
||
18 | protected $aggregate; |
||
19 | protected $schema; |
||
20 | protected $type; |
||
21 | protected $cacheTime; |
||
22 | |||
23 | /** |
||
24 | * String collection |
||
25 | * @return mixed |
||
26 | */ |
||
27 | public function getCollection() |
||
31 | |||
32 | /** |
||
33 | * Set value of collection |
||
34 | * @param mixed $collection string name |
||
35 | * @return void |
||
36 | */ |
||
37 | public function setCollection($collection) |
||
41 | |||
42 | /** |
||
43 | * Route path |
||
44 | * @return mixed |
||
45 | */ |
||
46 | public function getRoute() |
||
50 | |||
51 | /** |
||
52 | * Set path |
||
53 | * @param mixed $route string route |
||
54 | * @return void |
||
55 | */ |
||
56 | public function setRoute($route) |
||
60 | |||
61 | /** |
||
62 | * Mongodb Aggregates |
||
63 | * @return mixed |
||
64 | */ |
||
65 | public function getAggregate() |
||
69 | |||
70 | /** |
||
71 | * Set mongodb query |
||
72 | * @param mixed $aggregate object type for query data |
||
73 | * @return void |
||
74 | */ |
||
75 | public function setAggregate($aggregate) |
||
79 | |||
80 | /** |
||
81 | * Schema for response |
||
82 | * @return mixed |
||
83 | */ |
||
84 | public function getSchema() |
||
88 | |||
89 | /** |
||
90 | * Schema data |
||
91 | * @param mixed $schema object schema |
||
92 | * @return void |
||
93 | */ |
||
94 | public function setSchema($schema) |
||
98 | |||
99 | /** |
||
100 | * Type of response data |
||
101 | * @return mixed |
||
102 | */ |
||
103 | public function getType() |
||
107 | |||
108 | /** |
||
109 | * Type for representation |
||
110 | * @param mixed $type string view |
||
111 | * @return void |
||
112 | */ |
||
113 | public function setType($type) |
||
117 | |||
118 | /** |
||
119 | * Time for this route data to be cached |
||
120 | * @return mixed |
||
|
|||
121 | */ |
||
122 | public function getCacheTime() |
||
126 | |||
127 | /** |
||
128 | * Time for this route data to be cached |
||
129 | * @param integer $cacheTime seconds to be cached |
||
130 | * @return void |
||
131 | */ |
||
132 | public function setCacheTime($cacheTime) |
||
136 | } |
||
137 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.