| 1 | <?php  | 
            ||
| 23 | class DateMapper extends FieldValueMapper  | 
            ||
| 24 | { | 
            ||
| 25 | /**  | 
            ||
| 26 | * Check if field can be mapped.  | 
            ||
| 27 | *  | 
            ||
| 28 | * @param \eZ\Publish\SPI\Search\Field $field  | 
            ||
| 29 | *  | 
            ||
| 30 | * @return mixed  | 
            ||
| 31 | */  | 
            ||
| 32 | public function canMap(Field $field)  | 
            ||
| 36 | |||
| 37 | /**  | 
            ||
| 38 | * Map field value to a proper Elasticsearch representation.  | 
            ||
| 39 | *  | 
            ||
| 40 | * @param \eZ\Publish\SPI\Search\Field $field  | 
            ||
| 41 | *  | 
            ||
| 42 | * @return mixed  | 
            ||
| 43 | */  | 
            ||
| 44 | public function map(Field $field)  | 
            ||
| 58 | }  | 
            ||
| 59 | 
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.