Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into rfc/escaper
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 28 changed files with 847 additions and 336 deletions.
9 changes: 3 additions & 6 deletions src/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

/**
* @namespace
*/
namespace Zend\EventManager;

use ArrayAccess;
Expand All @@ -36,7 +33,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Event implements EventDescription
class Event implements EventInterface
{
/**
* @var string Event name
Expand Down Expand Up @@ -112,13 +109,13 @@ public function getTarget()
*
* @param array|ArrayAccess|object $params
* @return Event
* @throws Exception\InvalidArgumentException
*/
public function setParams($params)
{
if (!is_array($params) && !is_object($params)) {
throw new Exception\InvalidArgumentException(sprintf(
'Event parameters must be an array or object; received "%s"',
(is_object($params) ? get_class($params) : gettype($params))
'Event parameters must be an array or object; received "%s"', gettype($params)
));
}

Expand Down
9 changes: 4 additions & 5 deletions src/EventDescription.php → src/EventInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

/**
* @namespace
*/
namespace Zend\EventManager;

use ArrayAccess;

/**
* Representation of an event
*
Expand All @@ -31,7 +30,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface EventDescription
interface EventInterface
{
/**
* Get event name
Expand Down Expand Up @@ -97,7 +96,7 @@ public function setParams($params);
public function setParam($name, $value);

/**
* Indicate whether or not the parent EventCollection should stop propagating events
* Indicate whether or not the parent EventManagerInterface should stop propagating events
*
* @param bool $flag
* @return void
Expand Down
Loading

0 comments on commit 1c83b8f

Please sign in to comment.