1 | <?php |
||
20 | class Aggregate extends FieldValueMapper |
||
21 | { |
||
22 | /** |
||
23 | * Array of available mappers. |
||
24 | * |
||
25 | * @var \eZ\Publish\Core\Search\Common\FieldValueMapper[] |
||
26 | */ |
||
27 | protected $mappers = array(); |
||
28 | |||
29 | /** |
||
30 | * Construct from optional mapper array. |
||
31 | * |
||
32 | * @param \eZ\Publish\Core\Search\Common\FieldValueMapper[] $mappers |
||
33 | */ |
||
34 | public function __construct(array $mappers = array()) |
||
40 | |||
41 | /** |
||
42 | * Adds mapper. |
||
43 | * |
||
44 | * @param \eZ\Publish\Core\Search\Common\FieldValueMapper $mapper |
||
45 | */ |
||
46 | public function addMapper(FieldValueMapper $mapper) |
||
50 | |||
51 | /** |
||
52 | * Check if field can be mapped. |
||
53 | * |
||
54 | * @param \eZ\Publish\SPI\Search\Field $field |
||
55 | * |
||
56 | * @return bool |
||
57 | */ |
||
58 | public function canMap(Field $field) |
||
62 | |||
63 | /** |
||
64 | * Map field value to a proper search engine representation. |
||
65 | * |
||
66 | * @throws \eZ\Publish\API\Repository\Exceptions\NotImplementedException |
||
67 | * |
||
68 | * @param \eZ\Publish\SPI\Search\Field $field |
||
69 | * |
||
70 | * @return mixed |
||
71 | */ |
||
72 | public function map(Field $field) |
||
84 | } |
||
85 |
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.