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

Commit

Permalink
Rename SignalSlot to EventManager
Browse files Browse the repository at this point in the history
- Renamed references from "signal" to "event"
- Renamed references from "slot" to "handler"
- Renaming of interfaces to "EventDispatcher" and "StaticEventDispatcher" to
  prevent naming conflicts
- Renamed SignalAggregate to HandlerAggregate (better describes the purpose)
  • Loading branch information
weierophinney committed Jan 21, 2011
1 parent e6b97af commit 010fb36
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/CallbackHandler.php
Expand Up @@ -26,7 +26,7 @@
/**
* CallbackHandler
*
* A handler for a signal, event, filterchain, etc. Abstracts PHP callbacks,
* A handler for a event, event, filterchain, etc. Abstracts PHP callbacks,
* primarily to allow for lazy-loading and ensuring availability of default
* arguments (currying).
*
Expand All @@ -43,9 +43,9 @@ class CallbackHandler
protected $callback;

/**
* @var string Signal to which this handle is subscribed
* @var string Event to which this handle is subscribed
*/
protected $signal;
protected $event;

/**
* Until callback has been validated, mark as invalid
Expand All @@ -62,26 +62,26 @@ class CallbackHandler
/**
* Constructor
*
* @param string $signal Signal to which slot is subscribed
* @param string $event Event to which slot is subscribed
* @param string|array|object $callback PHP callback (first element may be )
* @param array $options Options used by the callback handler (e.g., priority)
* @return void
*/
public function __construct($signal, $callback, array $options = array())
public function __construct($event, $callback, array $options = array())
{
$this->signal = $signal;
$this->event = $event;
$this->callback = $callback;
$this->options = $options;
}

/**
* Get signal to which slot is subscribed
* Get event to which handler is subscribed
*
* @return string
*/
public function getSignal()
public function getEvent()
{
return $this->signal;
return $this->event;
}

/**
Expand Down

0 comments on commit 010fb36

Please sign in to comment.