getConstants(); } /** * Verify that a constant value is valid * @param mixed $key * @return boolean */ protected function isValid($key) { $values = array_values($this->getConstList()); return in_array($key, $values); } } // End of Enum.php