for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Jerodev\PhpIrcClient\Messages;
class TopicChangeMessage extends IrcMessage
{
/** @var string */
public $channel;
public $topic;
public function __construct(string $message)
parent::__construct($message);
$this->channel = preg_replace('/^[^\#]+(\#.*?)$/', '$1', $this->commandsuffix);
$this->topic = $this->payload;
}