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());
 }