src/Event/Match/Chan.php
public function setChan($chan)
    {
        if (!\Erebot\Utils::stringifiable($chan)) {
            throw new \Erebot\InvalidValueException('Not a channel');
        }

        $this->chan = $chan;
    }
public function setChan($chan)
    {
        if (!\Erebot\Utils::stringifiable($chan)) {
            throw new \Erebot\InvalidValueException('Not a channel');
        }

        $this->chan = $chan;
    }
public function setChan ( $ chan ) { if ( ! \ Erebot \ Utils :: stringifiable ( $ chan ) ) { throw new \ Erebot \ InvalidValueException ( 'Not a channel' ) ; } $ this -> chan = $ chan ; }
Sets the channel used in comparisons.

\param $chan string|object
Channel to match incoming events against.

\throw Erebot::InvalidValueException
The given chan is invalid.
Sets the channel used in comparisons .