Neos\Flow\Http\Cookie::getDomain PHP Метод

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

Returns the domain this cookie is valid for.
public getDomain ( ) : string
Результат string The domain name
    public function getDomain()
    {
        return $this->domain;
    }

Usage Example

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