Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
32 | public function build($name, $value) |
||
33 | { |
||
34 | $cookie = new HttpCookie($name, $value); |
||
35 | $cookie->setPath($this->defaultPath); |
||
36 | $cookie->setSecure($this->defaultSecure); |
||
37 | $cookie->setHttpOnly($this->defaultHttpOnly); |
||
38 | |||
39 | if ($this->defaultDomain !== null) { |
||
40 | $cookie->setDomain($this->defaultDomain); |
||
41 | } |
||
42 | |||
43 | return $cookie; |
||
44 | } |
||
45 | } |