aboutsummaryrefslogblamecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Event/Activity/Actions/Annotation/AnnotationEvent.php
blob: b4cb93afc5454a3628512f141504e5992c514c09 (plain) (tree)






































                                                                
<?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;
    }
}