+ public function __construct($bot, $method) {
+ $this->bot = $bot;
+ $this->method = $method;
+ }
+
+ public function trigger($params) {
+ call_user_func_array(array($this->bot, $this->method), $params);
+ }
+
+ public function match($bot, $method) {
+ return ($bot === $this->bot && strtolower($this->method) == strtolower($method));