1 | <?php |
||
20 | class BinaryContent extends RestController |
||
21 | { |
||
22 | /** |
||
23 | * @var \eZ\Publish\SPI\Variation\VariationHandler |
||
24 | */ |
||
25 | protected $imageVariationHandler; |
||
26 | |||
27 | /** |
||
28 | * Construct controller. |
||
29 | * |
||
30 | * @param \eZ\Publish\SPI\Variation\VariationHandler $imageVariationHandler |
||
31 | */ |
||
32 | public function __construct(VariationHandler $imageVariationHandler) |
||
36 | |||
37 | /** |
||
38 | * Returns data about the image variation $variationIdentifier of image field $fieldId. |
||
39 | * Will generate the alias if it hasn't been generated yet. |
||
40 | * |
||
41 | * @param mixed $imageId A custom ID that identifies the image field. |
||
42 | * Until v6.9, the format is {contentId}-{fieldId}. |
||
43 | * since v6.9, the format is {contentId}-{fieldId}-{versionNumber}. |
||
44 | * If the version number isn't specified, the default one is used. |
||
45 | * @param string $variationIdentifier |
||
46 | * |
||
47 | * @throws \eZ\Publish\Core\REST\Common\Exceptions\NotFoundException |
||
48 | * |
||
49 | * @return \eZ\Publish\SPI\Variation\Values\Variation |
||
50 | */ |
||
51 | public function getImageVariation($imageId, $variationIdentifier) |
||
89 | |||
90 | /** |
||
91 | * Parses an imageId string into contentId, fieldId and versionNumber. |
||
92 | * |
||
93 | * @param string $imageId Either {contentId}-{fieldId} or {contentId}-{fieldId}-{versionNumber} |
||
94 | * |
||
95 | * @return array An array with 3 keys: contentId, fieldId and versionNumber. |
||
96 | * If the versionNumber wasn't set, it is returned as null. |
||
97 | * |
||
98 | * @throws \eZ\Publish\Core\REST\Common\Exceptions\NotFoundException If the imageId format is invalid |
||
99 | */ |
||
100 | private function parseImageId($imageId) |
||
112 | } |
||
113 |
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.