예제 #1
0
 /**
  * Creates a new event containing some text
  * and for which a source and a destination
  * (target) can be identified.
  *
  * \param Erebot::Interfaces::Connection $connection
  *      The connection this event came from.
  *
  * \param string $source
  *      Source identified for this event.
  *
  * \param string $target
  *      Target identified for this event.
  *
  * \param string $text
  *      Text contained in this event.
  */
 public function __construct(\Erebot\Interfaces\Connection $connection, $source, $target, $text)
 {
     parent::__construct($connection, $source, $target);
     $this->text = new \Erebot\TextWrapper((string) $text);
 }
예제 #2
0
 /**
  * Creates a new event for which a source,
  * a destination (target) and a channel
  * can be identified.
  *
  * \param Erebot::Interfaces::Connection $connection
  *      The connection this event came from.
  *
  * \param string $chan
  *      IRC channel this event applies to.
  *
  * \param string $source
  *      Source identified for this event.
  *
  * \param string $target
  *      Target identified for this event.
  */
 public function __construct(\Erebot\Interfaces\Connection $connection, $chan, $source, $target)
 {
     parent::__construct($connection, $source, $target);
     $this->chan = $chan;
 }