21 namespace Erebot\Event\Match;
31 class Chan implements \Erebot\Interfaces\Event\Match
72 if (!\Erebot\Utils::stringifiable(
$chan)) {
73 throw new \Erebot\InvalidValueException(
'Not a channel');
79 public function match(\Erebot\Interfaces\Event\Base\Generic $event)
81 if (!($event instanceof \Erebot\Interfaces\Event\Base\
Chan)) {
85 $collator = $event->getConnection()->getCollator();
$chan
Channel to use in the comparison, as a string.
A filter that compares the target channel for an event with some predefined value.