code: public function setUpdatedRange($updatedRange)
      {
          if ($updatedRange instanceof DateTimeRange) {
              $this->updatedRange = $updatedRange;
          } elseif (is_array($updatedRange)) {
              $this->updatedRange = new DateTimeRange($updatedRange);
          } else {
              $this->updatedRange = null;
              trigger_error('Argument must be an object of class DateTimeRange. Data loss!', E_USER_WARNING);
          }
  
          return $this;
      }
docs: Sets the "updatedRange" of the Search.
  
  @param DateTimeRange $updatedRange
  
  @return Search