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

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

Tells if this cookie should only be used through the HTTP protocol.
public isHttpOnly ( ) : boolean
Результат boolean State of the "HttpOnly" attribute
    public function isHttpOnly()
    {
        return $this->httpOnly;
    }

Usage Example

 /**
  * @test
  */
 public function isHttpOnlyReturnsHttpOnlyFlag()
 {
     $cookie = new Cookie('foo', 'bar');
     $this->assertTrue($cookie->isHttpOnly());
     $cookie = new Cookie('foo', 'bar', 0, null, 'neos.io', '/', false, false);
     $this->assertFalse($cookie->isHttpOnly());
 }