attach() public method

public attach ( Crummy\Phlack\Bot\BotInterface $bot, Crummy\Phlack\Common\Matcher\MatcherInterface | callable $matcher = null, integer $priority ) : self
$bot Crummy\Phlack\Bot\BotInterface
$matcher Crummy\Phlack\Common\Matcher\MatcherInterface | callable If callable, it should accept a CommandInterface and return a boolean.
$priority integer
return self
Beispiel #1
0
 /**
  * @param BotInterface              $bot
  * @param MatcherInterface|callable $matcher
  * @param int                       $priority
  *
  * @return self
  */
 public function attach(BotInterface $bot, $matcher = null, $priority = 0)
 {
     $this->mainframe->attach($bot, $matcher, $priority);
     return $this;
 }