hooked.php

Event hook dispatch utility
git clone git://git.finwo.net/lib/hooked.php
Log | Files | Refs

commit 01b61265458a0fdca873cc1b4ef859898fa06271
parent 03fb83163c881a5cea94e9cc670e675dce8424a8
Author: finwo <finwo@pm.me>
Date:   Fri, 22 Apr 2016 22:09:30 +0200

Added event constructor

Diffstat:
Msrc/Event.php | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/Event.php b/src/Event.php @@ -22,6 +22,17 @@ class Event private $accessor; /** + * Event constructor. + * @param string $name + * @param array $parameters + */ + public function __construct($name = '', $parameters = array()) + { + $this->name = $name; + $this->param = $parameters; + } + + /** * @return PropertyAccessor */ private function getAccessor()