Neos\Flow\Http\Cookie::getPath PHP Méthode

getPath() public méthode

Returns the path this cookie is valid for.
public getPath ( ) : string
Résultat string The path
    public function getPath()
    {
        return $this->path;
    }

Usage Example

 /**
  * @test
  */
 public function getPathReturnsPath()
 {
     $cookie = new Cookie('foo', 'bar');
     $this->assertSame('/', $cookie->getPath());
     $cookie = new Cookie('foo', 'bar', 0, null, 'flow.neos.io', '/about/us');
     $this->assertSame('/about/us', $cookie->getPath());
 }