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