PHP Class JBZoo\Utils\Env

Afficher le fichier Open project: jbzoo/utils Class Usage Examples

Méthodes publiques

Méthode Description
convert ( string $value, integer $options = self::VAR_STRING ) : mixed Converts the type of values like "true", "false", "null" or "123".
get ( string $name, string $default = null, integer $options = self::VAR_STRING ) : mixed Returns an environment variable.
getBinary ( ) : string
getName ( ) : string
getNameWithVersion ( ) : string
getVendorUrl ( ) : string
getVersion ( ) : string
hasPHPDBGCodeCoverage ( ) : boolean
hasXdebug ( ) : boolean
isHHVM ( ) : boolean
isPHP ( ) : boolean
isPHPDBG ( ) : boolean

Method Details

convert() public static méthode

Converts the type of values like "true", "false", "null" or "123".
public static convert ( string $value, integer $options = self::VAR_STRING ) : mixed
$value string
$options integer
Résultat mixed

get() public static méthode

Returns an environment variable.
public static get ( string $name, string $default = null, integer $options = self::VAR_STRING ) : mixed
$name string
$default string
$options integer
Résultat mixed

getBinary() public static méthode

Deprecation:
public static getBinary ( ) : string
Résultat string

getName() public static méthode

Deprecation:
public static getName ( ) : string
Résultat string

getNameWithVersion() public static méthode

Deprecation:
public static getNameWithVersion ( ) : string
Résultat string

getVendorUrl() public static méthode

Deprecation:
public static getVendorUrl ( ) : string
Résultat string

getVersion() public static méthode

Deprecation:
public static getVersion ( ) : string
Résultat string

hasPHPDBGCodeCoverage() public static méthode

Deprecation:
public static hasPHPDBGCodeCoverage ( ) : boolean
Résultat boolean

hasXdebug() public static méthode

Deprecation:
public static hasXdebug ( ) : boolean
Résultat boolean

isHHVM() public static méthode

Deprecation:
public static isHHVM ( ) : boolean
Résultat boolean

isPHP() public static méthode

Deprecation:
public static isPHP ( ) : boolean
Résultat boolean

isPHPDBG() public static méthode

Deprecation:
public static isPHPDBG ( ) : boolean
Résultat boolean