lists = $lists; } /** * Validate timezone code * * @param string $timezoneCode * @return bool * @api */ public function isValid($timezoneCode) { $isValid = true; $allowedTimezoneCodes = array_keys($this->lists->getTimezoneList()); if (!$timezoneCode || !in_array($timezoneCode, $allowedTimezoneCodes)) { $isValid = false; } return $isValid; } }