| 1 | <?php |
||
| 21 | class GeoLocationMapper extends FieldValueMapper |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Check if field can be mapped. |
||
| 25 | * |
||
| 26 | * @param \eZ\Publish\SPI\Search\Field $field |
||
| 27 | * |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | public function canMap(Field $field) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Map field value to a proper Solr representation. |
||
| 37 | * |
||
| 38 | * @param \eZ\Publish\SPI\Search\Field $field |
||
| 39 | * |
||
| 40 | * @return mixed|null Returns null on empty value |
||
| 41 | */ |
||
| 42 | public function map(Field $field) |
||
| 50 | } |
||
| 51 |
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@propertyannotation 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.