PHP Class mpyw\Co\Internal\TypeUtils

Afficher le fichier Open project: mpyw/co Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

isFatalThrowable() public static méthode

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

isGeneratorClosure() public static méthode

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

isGeneratorContainer() public static méthode

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