| 1 | <?php |
||
| 22 | class DeleteRemovedAttachmentsSubscriber implements EventSubscriber |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @see \Doctrine\Common\EventSubscriber::getSubscribedEvents() |
||
| 26 | */ |
||
| 27 | public function getSubscribedEvents() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Removes attachments |
||
| 34 | * |
||
| 35 | * @param LifecycleEventArgs $eventArgs |
||
| 36 | */ |
||
| 37 | public function postRemoveEntity(LifecycleEventArgs $eventArgs) |
||
| 51 | } |
||
| 52 |
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.