public static function check_value($value, $msg = null) { if (is_null(self::$instance)) { self::$instance = new self(); } BasicEnum::check_val(self::$instance, $value, $msg); }
/** @brief Defines new reply helper format. * @param $format [in] new format to set (see AfsHelperFormat) * @return current instance. * @exception InvalidArgumentException when provided format is invalid. */ public function set_helper_format($format) { AfsHelperFormat::check_value($format, 'Invalid helper format: '); $this->helper_format = $format; return $this; }