PHP Class mpyw\Co\Internal\TypeUtils

Datei anzeigen Open project: mpyw/co Class Usage Examples

Public Methods

Method Description
isCurl ( mixed $value ) : boolean Check if value is a valid cURL handle.
isFatalThrowable ( mixed $value ) : boolean Check if value is Throwable, excluding RuntimeException.
isGeneratorClosure ( mixed $value ) : boolean Check if value is a valid Generator closure.
isGeneratorContainer ( mixed $value ) : boolean Check if value is a valid Generator.

Method Details

isCurl() public static method

Check if value is a valid cURL handle.
public static isCurl ( mixed $value ) : boolean
$value mixed
return boolean

isFatalThrowable() public static method

Check if value is Throwable, excluding RuntimeException.
public static isFatalThrowable ( mixed $value ) : boolean
$value mixed
return boolean

isGeneratorClosure() public static method

Check if value is a valid Generator closure.
public static isGeneratorClosure ( mixed $value ) : boolean
$value mixed
return boolean

isGeneratorContainer() public static method

Check if value is a valid Generator.
public static isGeneratorContainer ( mixed $value ) : boolean
$value mixed
return boolean