isWarning() public static method

Looks at the object and if a WPDKWarning class. Does not check to see if the parent is also WPDKWarning or a WPDKResult, so can't inherit both the classes and still use this function.
Since: 1.2.0
public static isWarning ( mixed $thing ) : boolean
$thing mixed Check if unknown variable is WPDKWarning object.
return boolean TRUE, if WPDKWarning. FALSE, if not WPDKWarning.
示例#1
0
 /**
  * Looks at the object and if a WPDKStatus class. Does not check to see if the parent is also WPDKStatus or a
  * WPDKResult, so can't inherit both the classes and still use this function.
  *
  * @brief      Check whether variable is a WPDK result status.
  *
  * @param mixed $thing Check if unknown variable is WPDKStatus object.
  *
  * @return bool TRUE, if WPDKStatus. FALSE, if not WPDKStatus.
  *
  * @deprecated Since 1.2.0 Use WPDKResult::isStatus() instead
  */
 function is_wpdk_status($thing)
 {
     _deprecated_function(__FUNCTION__, '1.2.0', 'WPDKResult::isStatus()');
     return WPDKResult::isWarning($thing);
 }