Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
PublicCookieMetadata.php
Go to the documentation of this file.
1 <?php
8 
16 {
25  public function setDuration($duration)
26  {
27  return $this->set(self::KEY_DURATION, $duration);
28  }
29 
35  public function setDurationOneYear()
36  {
37  return $this->setDuration(3600 * 24 * 365);
38  }
39 
47  public function getDuration()
48  {
49  return $this->get(self::KEY_DURATION);
50  }
51 
58  public function setHttpOnly($httpOnly)
59  {
60  return $this->set(self::KEY_HTTP_ONLY, $httpOnly);
61  }
62 
69  public function setSecure($secure)
70  {
71  return $this->set(self::KEY_SECURE, $secure);
72  }
73 }