getPath() публичный метод

Gets the path of the cookie.
public getPath ( ) : string
Результат string The cookie path
Пример #1
0
 public function testGetPath()
 {
     $cookie = new Cookie('foo', 'bar', 0);
     $this->assertEquals('/', $cookie->getPath(), '->getPath() returns / is no path is defined');
     $cookie = new Cookie('foo', 'bar', 0, '/foo');
     $this->assertEquals('/foo', $cookie->getPath(), '->getPath() returns the cookie path');
 }