Example #1
0
 /**
  * Fill next operation in given object and return flag indicating whether operation is required
  *
  * @param RequestDescriptor  $requestDescriptor Request descriptor object
  * @param OperationInterface $nextOperation Next operation object
  *
  * @return bool True if given operation is complete
  */
 private function resolveNextOperation(RequestDescriptor $requestDescriptor, OperationInterface $nextOperation)
 {
     if ($nextOperation instanceof NullOperation) {
         $requestDescriptor->setOperation($nextOperation);
         return true;
     }
     if ($requestDescriptor->getOperation() === $nextOperation) {
         return false;
     }
     $requestDescriptor->setOperation($nextOperation);
     $requestDescriptor->setMetadata([RequestExecutorInterface::META_LAST_IO_START_TIME => null]);
     return false;
 }