Symfony\Component\HttpFoundation\Cookie::getName PHP Method

getName() public method

Gets the name of the cookie.
public getName ( ) : string
return string
    public function getName()
    {
        return $this->name;
    }

Usage Example

 /**
  * Set the given cookie in the headers.
  *
  * @param  \Symfony\Component\HttpFoundation\Cookie  $cookie
  * @return void
  */
 protected function setCookie($cookie)
 {
     if (headers_sent()) {
         return;
     }
     setcookie($cookie->getName(), $cookie->getValue(), $cookie->getExpiresTime(), $cookie->getPath(), $cookie->getDomain(), Config::get('session.secure'), $cookie->isHttpOnly());
 }
All Usage Examples Of Symfony\Component\HttpFoundation\Cookie::getName