Symfony\Component\BrowserKit\Cookie::getName PHP Метод

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

Gets the name of the cookie.
public getName ( ) : string
Результат string The cookie name
    public function getName()
    {
        return $this->name;
    }

Usage Example

Пример #1
0
 public function testGetName()
 {
     $cookie = new Cookie('foo', 'bar');
     $this->assertEquals('foo', $cookie->getName(), '->getName() returns the cookie name');
 }