Neos\Flow\Persistence\Generic\QueryResult::offsetExists PHP 메소드

offsetExists() 공개 메소드

This method is needed to implement the \ArrayAccess interface, but it isn't very useful as the offset has to be an integer
또한 보기: ArrayAccess::offsetExists()
public offsetExists ( mixed $offset ) : boolean
$offset mixed
리턴 boolean
    public function offsetExists($offset)
    {
        $this->initialize();
        return isset($this->queryResult[$offset]);
    }

Usage Example

 /**
  * @test
  */
 public function offsetUnsetWorksAsExpected()
 {
     $this->queryResult->offsetUnset(0);
     $this->assertFalse($this->queryResult->offsetExists(0));
 }