Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

create an Event class, update interface

  • Loading branch information...
commit 5c1342d056c14512a683ce6b36ccb60a3bd06227 1 parent 30eadd6
@iampersistent iampersistent authored
View
37 lib/Vespolina/EventDispatcher/Event.php
@@ -0,0 +1,37 @@
+<?php
+/**
+ * (c) 2012 Vespolina Project http://www.vespolina-project.org
+ *
+ * This source file is subject to the MIT license that is bundled
+ * with this source code in the file LICENSE.
+ */
+
+namespace Vespolina\EventDispatcher;
+
+use Vespolina\EventDispatcher\EventInterface;
+
+class Event implements EventInterface
+{
+ protected $name;
+ protected $subject;
+
+ public function __construct($subject)
+ {
+ $this->subject = $subject;
+ }
+
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+
+ public function getSubject()
+ {
+ return $this->subject;
+ }
+}
View
4 lib/Vespolina/EventDispatcher/EventInterface.php
@@ -12,5 +12,7 @@
{
function getName();
- function setName();
+ function setName($name);
+
+ function getSubject();
}
Please sign in to comment.
Something went wrong with that request. Please try again.