public function __construct($path) { $this->validatePath($path); $this->path = $path; $this->allowedMethods = []; $this->request = []; $this->query = []; $this->headers = []; $this->body = ''; }