<?php
namespace Group\Events;
class Event
{
protected $property;
public function __construct($property = null)
{
$this->property = $property;
}
public function getProperty()
{
return $this->property;
}
public function setProperty($property)
{
$this->property = $property;
}
}
<?php
namespace Group\Events;
final class QueueEvent extends \Event
{
const CRASH = "server.crash";
protected $server;
protected $host;
public function __construct($server, $host)
{
$this->server = $server;
$this->host = $host;
}
public function getServer()
{
return $this->server;
}
public function getHost()
{
return $this->host;
}
}