public function setMin($min)
    {
        if ($min instanceof DateTime) {
            $this->min = $min;
        } else {
            try {
                $this->min = new DateTime($min);
            } catch (\Exception $e) {
                $this->min = null;
            }
        }

        return $this;
    }