preliminary 2.3.0 docs
[mdref/mdref-http] / http / Cookie / setFlags.md
1 # http\Cookie http\Cookie::setFlags([int $value = 0])
2
3 Set the flags to specified $value.
4 See http\Cookie::SECURE and http\Cookie::HTTPONLY constants.
5
6 ## Params:
7
8 * Optional int $value = 0
9 The new flags bitmask.
10
11 ## Returns:
12
13 * http\Cookie, self.
14
15 ## Throws:
16
17 * http\Exception\InvalidArgumentException