PHP Class phprs\util\Verify

Afficher le fichier Open project: caoym/phprs-restful Class Usage Examples

Méthodes publiques

Méthode Description
e ( Exception | string $e )
isTrue ( boolean $var, string | Exception $msg = null ) : unknown 如果判断不为true,抛出异常

Method Details

e() public static méthode

public static e ( Exception | string $e )
$e Exception | string

isTrue() public static méthode

如果判断不为true,抛出异常
public static isTrue ( boolean $var, string | Exception $msg = null ) : unknown
$var boolean
$msg string | Exception
Résultat unknown