code: public function getMax($params = [])
      {
          if (!$this->enable) {
              return new \DateTime();
          }
  
          $params = (array) $params;
          // always check the date of the last update of the project
          if (!in_array(self::LAST_UPDATE_KEY, $params)) {
              $params[] = self::LAST_UPDATE_KEY;
          }
  
          if (!($time = $this->driver->getMax($params))) {
              $time = $this->reset();
          }
  
          return $time;
      }
docs: Get a list of keys or dates and chooses the max date.
  
  @param mixed $params
  
  @return \DateTime