12 private $headerCollection;
15 private $pathParams = [];
18 private $cookiePrefix;
25 $this->cookiePrefix = $cookiePrefix;
38 if ( $this->headerCollection !==
null ) {
39 $this->headerCollection = clone $this->headerCollection;
59 if ( $this->headerCollection ===
null ) {
62 return $this->headerCollection->getHeaders();
66 if ( $this->headerCollection ===
null ) {
69 return $this->headerCollection->getHeader( $name );
73 if ( $this->headerCollection ===
null ) {
76 return $this->headerCollection->hasHeader( $name );
80 if ( $this->headerCollection ===
null ) {
83 return $this->headerCollection->getHeaderLine( $name );
87 $this->pathParams = $params;
91 return $this->pathParams;
95 return $this->pathParams[$name] ??
null;
99 return $this->cookiePrefix;
105 if ( array_key_exists( $prefixedName, $cookies ) ) {
106 return $cookies[$prefixedName];