Neos\Flow\Persistence\Generic\QueryResult::offsetUnset PHP Метод

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

This method has no effect on the persisted objects but only on the result set
См. также: ArrayAccess::offsetUnset()
public offsetUnset ( mixed $offset ) : void
$offset mixed
Результат void
    public function offsetUnset($offset)
    {
        $this->initialize();
        unset($this->queryResult[$offset]);
    }

Usage Example

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