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 | } |
This error could be the result of:
1. Missing dependencies
PHP Analyzer uses your
composer.json
file (if available) to determine the dependencies of your project and to determine all the available classes and functions. It expects thecomposer.json
to be in the root folder of your repository.Are you sure this class is defined by one of your dependencies, or did you maybe not list a dependency in either the
require
orrequire-dev
section?2. Missing use statement
PHP does not complain about undefined classes in
ìnstanceof
checks. For example, the following PHP code will work perfectly fine:If you have not tested against this specific condition, such errors might go unnoticed.