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