*/ private array $params; private bool $noAuth; /** * @param array $params */ public function __construct( string $method, string $route, array $params, bool $noAuth ) { $this->method = strtoupper($method); $this->route = $route; $this->params = $params; $this->noAuth = $noAuth; } public function getMethod(): string { return $this->method; } public function getRoute(): string { return $this->route; } /** * @return array */ public function getParams(): array { return $this->params; } public function noAuth(): bool { return $this->noAuth; } }