for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of PHP DNS Server.
*
* (c) Yif Swery <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace yswery\DNS\Event;
use React\Datagram\Socket;
use React\Datagram\SocketInterface;
class MessageEvent extends ServerStartEvent
{
/**
* @var string
private $remote;
private $message;
* MessageEvent constructor.
* @param SocketInterface $socket
* @param string $remote
* @param string $message
public function __construct(SocketInterface $socket, string $remote, string $message)
parent::__construct($socket);
$this->remote = $remote;
$this->message = $message;
}
* @return string
public function getRemote(): string
return $this->remote;
public function getMessage(): string
return $this->message;