src/Event/Match/Source.php
public function setSource($source)
    {
        if ($source !== null && !\Erebot\Utils::stringifiable($source)) {
            throw new \Erebot\InvalidValueException('Not a valid nickname');
        }

        $this->source = $source;
    }
public function setSource($source)
    {
        if ($source !== null && !\Erebot\Utils::stringifiable($source)) {
            throw new \Erebot\InvalidValueException('Not a valid nickname');
        }

        $this->source = $source;
    }
public function setSource ( $ source ) { if ( $ source !== null && ! \ Erebot \ Utils :: stringifiable ( $ source ) ) { throw new \ Erebot \ InvalidValueException ( 'Not a valid nickname' ) ; } $ this -> source = $ source ; }
Sets the source used in comparisons.

\param $source string|object
Source to match incoming events against.

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