]>
Commit | Line | Data |
---|---|---|
bf6c0346 TC |
1 | <?php |
2 | ||
3 | namespace Wallabag\CoreBundle\Event\Activity\Actions\Annotation; | |
4 | ||
5 | use Symfony\Component\EventDispatcher\Event; | |
6 | use Wallabag\AnnotationBundle\Entity\Annotation; | |
7 | ||
8 | /** | |
9 | * This event is fired when annotation-relative stuff is made. | |
10 | */ | |
11 | abstract class AnnotationEvent extends Event | |
12 | { | |
13 | protected $annotation; | |
14 | ||
15 | /** | |
16 | * AnnotationEvent constructor. | |
17 | * @param Annotation $annotation | |
18 | */ | |
19 | public function __construct(Annotation $annotation) | |
20 | { | |
21 | $this->annotation = $annotation; | |
22 | } | |
23 | ||
24 | /** | |
25 | * @return Annotation | |
26 | */ | |
27 | public function getAnnotation() | |
28 | { | |
29 | return $this->annotation; | |
30 | } | |
31 | ||
32 | /** | |
33 | * @param Annotation $annotation | |
34 | */ | |
35 | public function setAnnotation(Annotation $annotation) | |
36 | { | |
37 | $this->annotation = $annotation; | |
38 | } | |
39 | } |