1 | <?php |
||
17 | abstract class AbstractURLHandler implements URLHandlerInterface |
||
18 | { |
||
19 | use LoggerAwareTrait; |
||
20 | |||
21 | /** @var \eZ\Publish\API\Repository\URLService */ |
||
22 | protected $urlService; |
||
23 | |||
24 | /** @var array */ |
||
25 | protected $options; |
||
26 | |||
27 | public function __construct(URLService $urlService) |
||
33 | |||
34 | /** |
||
35 | * Returns options resolver. |
||
36 | * |
||
37 | * @return \Symfony\Component\OptionsResolver\OptionsResolver |
||
38 | */ |
||
39 | abstract protected function getOptionsResolver(); |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function setOptions(array $options = null) |
||
52 | |||
53 | /** |
||
54 | * Sets URL status. |
||
55 | * |
||
56 | * @param \eZ\Publish\API\Repository\Values\URL\URL $url |
||
57 | * @param bool $isValid |
||
58 | */ |
||
59 | protected function setUrlStatus(URL $url, $isValid) |
||
73 | } |
||
74 |
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.