]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Event/Activity/Actions/Share/ShareEvent.php
WIP
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Event / Activity / Actions / Share / ShareEvent.php
diff --git a/src/Wallabag/CoreBundle/Event/Activity/Actions/Share/ShareEvent.php b/src/Wallabag/CoreBundle/Event/Activity/Actions/Share/ShareEvent.php
new file mode 100644 (file)
index 0000000..0022a39
--- /dev/null
@@ -0,0 +1,39 @@
+<?php
+
+namespace Wallabag\CoreBundle\Event\Activity\Actions\Share;
+
+use Symfony\Component\EventDispatcher\Event;
+use Wallabag\CoreBundle\Entity\Share;
+
+/**
+ * This event is fired when share-related stuff is made.
+ */
+abstract class ShareEvent extends Event
+{
+    protected $share;
+
+    /**
+     * ShareEvent constructor.
+     * @param Share $share
+     */
+    public function __construct(Share $share)
+    {
+        $this->share = $share;
+    }
+
+    /**
+     * @return Share
+     */
+    public function getShare()
+    {
+        return $this->share;
+    }
+
+    /**
+     * @param Share $share
+     */
+    public function setShare(Share $share)
+    {
+        $this->share = $share;
+    }
+}