Event/DocumentTagEvent.php
changeset 34 21fab44f46fe
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Event/DocumentTagEvent.php	Thu Nov 17 11:29:26 2011 +0100
@@ -0,0 +1,28 @@
+<?php
+/*
+ * This file is part of the WikiTagBundle package.
+ *
+ * (c) IRI <http://www.iri.centrepompidou.fr/>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+namespace IRI\Bundle\WikiTagBundle\Event;
+
+use Symfony\Component\EventDispatcher\Event;
+use IRI\Bundle\WikiTagBundle\Model\DocumentInterface;
+
+class DocumentTagEvent extends Event
+{
+    protected $document;
+
+    public function __construct(DocumentInterface $doc)
+    {
+        $this->document = $doc;
+    }
+
+    public function getDocument()
+    {
+        return $this->document;
+    }
+}
\ No newline at end of file