1 | <?php |
||
18 | class GeoLocationMapper extends FieldValueMapper |
||
19 | { |
||
20 | /** |
||
21 | * Check if field can be mapped. |
||
22 | * |
||
23 | * @param \eZ\Publish\SPI\Search\Field $field |
||
24 | * |
||
25 | * @return bool |
||
26 | */ |
||
27 | public function canMap(Field $field) |
||
31 | |||
32 | /** |
||
33 | * Map field value to a proper search engine representation. |
||
34 | * |
||
35 | * @param \eZ\Publish\SPI\Search\Field $field |
||
36 | * |
||
37 | * @return mixed|null Returns null on empty value |
||
38 | */ |
||
39 | public function map(Field $field) |
||
47 | } |
||
48 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.