getName() публичный Метод

Returns the name of this cookie
public getName ( ) : string
Результат string The cookie name
 /**
  * @param string  $cookieName
  * @test
  * @dataProvider validCookieNames
  */
 public function constructorAcceptsValidCookieNames($cookieName)
 {
     $cookie = new Cookie($cookieName);
     $this->assertEquals($cookieName, $cookie->getName());
 }
Пример #2
0
 /**
  * Sets a cookie
  *
  * @param Cookie $cookie
  * @return void
  * @api
  */
 public function setCookie(Cookie $cookie)
 {
     $this->cookies[$cookie->getName()] = $cookie;
 }