diff options
author | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2012-08-02 10:15:37 +0200 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2012-08-02 10:15:37 +0200 |
commit | 3d047c241af20a7ae19665c4942b7ba778cab94e (patch) | |
tree | 19e86841c0cf882eea7dcf082343eb51d859bae8 | |
parent | ccf0bf1f7c95ead6da5b702966ca9dc637319938 (diff) | |
download | Dns-3d047c241af20a7ae19665c4942b7ba778cab94e.zip Dns-3d047c241af20a7ae19665c4942b7ba778cab94e.tar.gz Dns-3d047c241af20a7ae19665c4942b7ba778cab94e.tar.bz2 |
The on() method returns $this.
-rw-r--r-- | Library/Dns/Dns.php | 6 |
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; } /** |