1 | <?php |
||
18 | class SMAreaValueDescription extends SMWValueDescription { |
||
19 | |||
20 | /** |
||
21 | * Associative array containing the bounds of the area, or false when not set. |
||
22 | * |
||
23 | * @since 0.6 |
||
24 | * |
||
25 | * @var mixed |
||
26 | */ |
||
27 | protected $bounds = false; |
||
28 | |||
29 | /** |
||
30 | * @since 3.0 |
||
31 | * |
||
32 | * @var SMWDIGeoCoord |
||
33 | */ |
||
34 | protected $center; |
||
35 | |||
36 | /** |
||
37 | * @since 3.0 |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $radius; |
||
42 | |||
43 | /** |
||
44 | * @param SMWDataItem $areaCenter |
||
45 | * @param string $comparator |
||
46 | * @param string $radius |
||
47 | * @param SMWDIProperty $property |
||
48 | * |
||
49 | * @throws InvalidArgumentException |
||
50 | */ |
||
51 | public function __construct( SMWDataItem $areaCenter, $comparator, $radius, SMWDIProperty $property = null ) { |
||
63 | |||
64 | private function getPropertyCompat() { |
||
67 | |||
68 | /** |
||
69 | * @see SMWDescription:getQueryString |
||
70 | * |
||
71 | * @since 0.6 |
||
72 | * |
||
73 | * @param boolean $asValue |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getQueryString( $asValue = false ) { |
||
84 | |||
85 | /** |
||
86 | * @see SMWDescription:prune |
||
87 | * |
||
88 | * @since 0.6 |
||
89 | */ |
||
90 | public function prune( &$maxsize, &$maxdepth, &$log ) { |
||
104 | |||
105 | /** |
||
106 | * Returns the bounds of the area. |
||
107 | * |
||
108 | * @since 0.6 |
||
109 | * |
||
110 | * @return array |
||
111 | */ |
||
112 | public function getBounds() { |
||
115 | |||
116 | /** |
||
117 | * @see SMWDescription::getSQLCondition |
||
118 | * |
||
119 | * FIXME: store specific code should be in the store component |
||
120 | * |
||
121 | * @since 0.6 |
||
122 | * |
||
123 | * @param string $tableName |
||
124 | * @param array $fieldNames |
||
125 | * @param DatabaseBase $dbs |
||
126 | * |
||
127 | * @return string or false |
||
128 | */ |
||
129 | public function getSQLCondition( $tableName, array $fieldNames, DatabaseBase $dbs ) { |
||
160 | |||
161 | /** |
||
162 | * @return float[] An associative array containing the limits with keys north, east, south and west. |
||
163 | */ |
||
164 | protected function getBoundingBox() { |
||
182 | |||
183 | /** |
||
184 | * Returns a boolean indicating if MapsGeoFunctions is available. |
||
185 | * |
||
186 | * @since 0.6 |
||
187 | * |
||
188 | * @return boolean |
||
189 | */ |
||
190 | protected function geoFunctionsAreAvailable() { |
||
193 | |||
194 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..