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;
    }