aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2012-08-02 10:15:37 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2012-08-02 10:15:37 +0200
commit3d047c241af20a7ae19665c4942b7ba778cab94e (patch)
tree19e86841c0cf882eea7dcf082343eb51d859bae8
parentccf0bf1f7c95ead6da5b702966ca9dc637319938 (diff)
downloadDns-3d047c241af20a7ae19665c4942b7ba778cab94e.zip
Dns-3d047c241af20a7ae19665c4942b7ba778cab94e.tar.gz
Dns-3d047c241af20a7ae19665c4942b7ba778cab94e.tar.bz2
The on() method returns $this.
-rw-r--r--Library/Dns/Dns.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Dns/Dns.php b/Library/Dns/Dns.php
index b0da726..58eb3ed 100644
--- a/Library/Dns/Dns.php
+++ b/Library/Dns/Dns.php
@@ -175,12 +175,14 @@ class Dns implements \Hoa\Core\Event\Listenable {
* @access public
* @param string $listenerId Listener ID.
* @param mixed $callable Callable.
- * @return \Hoa\Worker\Backend\Shared
+ * @return \Hoa\Dns
* @throw \Hoa\Core\Exception
*/
public function on ( $listenerId, $callable ) {
- return $this->_on->attach($listenerId, $callable);
+ $this->_on->attach($listenerId, $callable);
+
+ return $this;
}
/**