@@ -126,6 +126,9 @@ discard block |
||
| 126 | 126 | return $clone; |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | + /** |
|
| 130 | + * @param boolean $secure |
|
| 131 | + */ |
|
| 129 | 132 | public function withSecure($secure = null) |
| 130 | 133 | { |
| 131 | 134 | $clone = clone($this); |
@@ -135,6 +138,9 @@ discard block |
||
| 135 | 138 | return $clone; |
| 136 | 139 | } |
| 137 | 140 | |
| 141 | + /** |
|
| 142 | + * @param boolean $httpOnly |
|
| 143 | + */ |
|
| 138 | 144 | public function withHttpOnly($httpOnly = null) |
| 139 | 145 | { |
| 140 | 146 | $clone = clone($this); |
@@ -160,6 +166,10 @@ discard block |
||
| 160 | 166 | return implode('; ', $cookieStringParts); |
| 161 | 167 | } |
| 162 | 168 | |
| 169 | + /** |
|
| 170 | + * @param string $name |
|
| 171 | + * @param string $value |
|
| 172 | + */ |
|
| 163 | 173 | public static function create($name, $value = null) |
| 164 | 174 | { |
| 165 | 175 | return new static($name, $value); |