public function get_value_exact() {
return NULL;
}
+
+ /**
+ * Determine if this class has a value assigned to it.
+ *
+ * @return bool
+ * TRUE if a value is assigned, FALSE otherwise.
+ */
+ public function has_value() {
+ return FALSE;
+ }
}
/**
return $this->value;
}
+
+ /**
+ * Determine if this class has a value assigned to it.
+ *
+ * @return bool
+ * TRUE if a value is assigned, FALSE otherwise.
+ */
+ public function has_value() {
+ return !is_null($this->value);
+ }
}
/**
*
* Most return classes will use this trait.
*
+ * This does not define has_value(), get_value(), and get_value_exact().
+ * Those functions are always gauranteed by the class c_base_return.
+ *
* @require class base_error
*/
trait t_base_return_value {
}
/**
- * Determine if this class has a value assigned to it.
- *
- * @return bool
- * TRUE if a value is assigned, FALSE otherwise.
- */
- public function has_value() {
- return !is_null($this->value);
- }
-
- /**
* Creates a new return __class__ type.
*
* This is used to simplify the returning of a new class value.