public function __construct($topic, $context, $handler = null) { $this->_topic = $topic; if (null === $handler) { $this->_callback = $context; } else { $this->_callback = array($context, $handler); } }