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

Returns a cookie specified by the given name
public getCookie ( string $name ) : Cookie
$name string Name of the cookie
Результат Cookie The cookie or NULL if no such cookie exists
 /**
  * Returns a cookie specified by the given name
  *
  * This is a shortcut for $message->getHeaders()->getCookie($name);
  *
  * @param string $name Name of the cookie
  * @return Cookie The cookie or NULL if no such cookie exists
  * @api
  */
 public function getCookie($name)
 {
     return $this->headers->getCookie($name);
 }
 /**
  * See FLOW-12
  *
  * @test
  */
 public function cookiesWithEmptyNameAreIgnored()
 {
     $headers = new Headers();
     $headers->set('Cookie', ['cookie1=the+value+number+1; =foo']);
     $this->assertTrue($headers->hasCookie('cookie1'));
     $this->assertEquals('the value number 1', $headers->getCookie('cookie1')->getValue());
 }