3 namespace Wallabag\CoreBundle\Event\Activity\Actions\Annotation
;
5 use Symfony\Component\EventDispatcher\Event
;
6 use Wallabag\AnnotationBundle\Entity\Annotation
;
9 * This event is fired when annotation-relative stuff is made.
11 abstract class AnnotationEvent
extends Event
13 protected $annotation;
16 * AnnotationEvent constructor.
17 * @param Annotation $annotation
19 public function __construct(Annotation
$annotation)
21 $this->annotation
= $annotation;
27 public function getAnnotation()
29 return $this->annotation
;
33 * @param Annotation $annotation
35 public function setAnnotation(Annotation
$annotation)
37 $this->annotation
= $annotation;