/** * Construct redirect event. * @param object $sender Sender object. * @param array|Linkable|string|null $route A route, see {@see Routing}. * @param bool $movied Whether it is a permanent (true) or temporary (false) redirect. */ public function __construct($sender, $route, $moved) { parent::__construct($sender); $this->route = $route; $this->moved = $moved; }
/** * Construct exception event. * @param object $sender Sender object. * @param \Exception $exception The exception. * @param string $body The response body. */ public function __construct($sender, $exception, $body) { parent::__construct($sender); $this->exception = $exception; $this->body = $body; }
/** * Construct active model event. * @param mixed $sender Sender */ public function __construct($sender) { parent::__construct($sender); if ($sender instanceof ActiveRecord) { $this->record = $sender; } }