getDomain() public method

Gets the domain of the cookie.
public getDomain ( ) : string
return string The cookie domain
Example #1
0
 public function testGetDomain()
 {
     $cookie = new Cookie('foo', 'bar', 0, '/', 'foo.com');
     $this->assertEquals('foo.com', $cookie->getDomain(), '->getDomain() returns the cookie domain');
 }