@@ -8,9 +8,10 @@ class ExtraConfig
88{
99 protected int $ cookie_lifetime = 0 ;
1010
11- public function setCookieLifetime (int $ cookie_lifetime )
11+ public function setCookieLifetime (int $ cookie_lifetime ): self
1212 {
1313 $ this ->cookie_lifetime = $ cookie_lifetime ;
14+ return $ this ;
1415 }
1516
1617 public function getCookieLifetime (): int
@@ -20,9 +21,10 @@ public function getCookieLifetime(): int
2021
2122 protected string $ cookie_path = '/ ' ;
2223
23- public function setCookiePath (string $ cookie_path )
24+ public function setCookiePath (string $ cookie_path ): self
2425 {
2526 $ this ->cookie_path = $ cookie_path ;
27+ return $ this ;
2628 }
2729
2830 public function getCookiePath (): string
@@ -32,9 +34,10 @@ public function getCookiePath(): string
3234
3335 protected string $ cookie_domain = '' ;
3436
35- public function setCookieDomain (string $ cookie_domain )
37+ public function setCookieDomain (string $ cookie_domain ): self
3638 {
3739 $ this ->cookie_domain = $ cookie_domain ;
40+ return $ this ;
3841 }
3942
4043 public function getCookieDomain (): string
@@ -44,9 +47,10 @@ public function getCookieDomain(): string
4447
4548 protected bool $ cookie_secure = false ;
4649
47- public function setCookieSecure (bool $ cookie_secure )
50+ public function setCookieSecure (bool $ cookie_secure ): self
4851 {
4952 $ this ->cookie_secure = $ cookie_secure ;
53+ return $ this ;
5054 }
5155
5256 public function getCookieSecure (): bool
@@ -56,9 +60,10 @@ public function getCookieSecure(): bool
5660
5761 protected bool $ cookie_httponly = false ;
5862
59- public function setCookieHttpOnly (bool $ cookie_httponly )
63+ public function setCookieHttpOnly (bool $ cookie_httponly ): self
6064 {
6165 $ this ->cookie_httponly = $ cookie_httponly ;
66+ return $ this ;
6267 }
6368
6469 public function getCookieHttpOnly (): bool
@@ -68,9 +73,10 @@ public function getCookieHttpOnly(): bool
6873
6974 protected bool $ cookie_samesite = false ;
7075
71- public function setCookieSameSite (bool $ cookie_samesite )
76+ public function setCookieSameSite (bool $ cookie_samesite ): self
7277 {
7378 $ this ->cookie_samesite = $ cookie_samesite ;
79+ return $ this ;
7480 }
7581
7682 public function getCookieSameSite (): bool
@@ -80,9 +86,10 @@ public function getCookieSameSite(): bool
8086
8187 protected bool $ use_cookies = true ;
8288
83- public function setUseCookies (bool $ use_cookies )
89+ public function setUseCookies (bool $ use_cookies ): self
8490 {
8591 $ this ->use_cookies = $ use_cookies ;
92+ return $ this ;
8693 }
8794
8895 public function getUseCookies (): bool
@@ -92,9 +99,10 @@ public function getUseCookies(): bool
9299
93100 protected bool $ use_only_cookies = true ;
94101
95- public function setUseOnlyCookies (bool $ use_only_cookies )
102+ public function setUseOnlyCookies (bool $ use_only_cookies ): self
96103 {
97104 $ this ->use_only_cookies = $ use_only_cookies ;
105+ return $ this ;
98106 }
99107
100108 public function getUseOnlyCookies (): bool
@@ -104,9 +112,10 @@ public function getUseOnlyCookies(): bool
104112
105113 protected string $ cache_limiter = 'nocache ' ;
106114
107- public function setCacheLimiter (string $ cache_limiter )
115+ public function setCacheLimiter (string $ cache_limiter ): self
108116 {
109117 $ this ->cache_limiter = $ cache_limiter ;
118+ return $ this ;
110119 }
111120
112121 public function getCacheLimiter (): string
@@ -116,9 +125,10 @@ public function getCacheLimiter(): string
116125
117126 protected int $ cache_expire = 180 ;
118127
119- public function setCacheExpire (int $ cache_expire )
128+ public function setCacheExpire (int $ cache_expire ): self
120129 {
121130 $ this ->cache_expire = $ cache_expire ;
131+ return $ this ;
122132 }
123133
124134 public function getCacheExpire (): int
0 commit comments