PHP Class phprs\util\Verify

Exibir arquivo Open project: caoym/phprs-restful Class Usage Examples

Public Methods

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

Method Details

e() public static method

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

isTrue() public static method

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