/** * Path constructor. * @param string $path * @param string $domain * @param string $method * @param bool $secure * @param mixed|null $request */ public function __construct(string $path, string $domain = 'localhost', string $method = 'GET', bool $secure = false, $request = null) { $this->method = $method; $this->domain = $domain; $this->method = strtoupper($method); $this->secure = $secure; $this->request = $request; parent::__construct($path); }
/** * Constructor * * @param string $name Event's name * @param boolean $cancelable (optional) Cancelable event */ public function __construct(string $name, bool $cancelable = false) { $this->eventName = $name; $this->cancelable = $cancelable; parent::__construct($name); }