code: public function setItemFlag($testSessionId, $itemRef, $flag)
      {
          $extendedState = $this->getExtendedState($testSessionId);
          $extendedState->setItemFlag($itemRef, $flag);
          $extendedState->save();
      }
docs: Set the marked for review state of an item
  @param string $testSessionId
  @param string $itemRef
  @param boolean $flag
  @throws \common_Exception