PHP Class Deployer\Server\Environment

Datei anzeigen Open project: elfet/deployer Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor
add ( string $name, array $array )
get ( string $name, boolean | integer | string | array $default = null ) : boolean | integer | string | array
getValues ( ) : Collection
has ( string $name ) : boolean Checks if set var exists.
parse ( string $value ) : string Parse set values.
set ( string $name, boolean | integer | string | array $value )
setAsProtected ( string $name, boolean | integer | string | array $value )

Private Methods

Method Description
checkIfNameIsProtected ( string $name ) Checks whether the given name was registered as protected, or if there is a protected parameter which would be overwritten.
isClosure ( mixed $t ) : boolean
parseCallback ( array $matches ) : mixed Replace set values callback for parse

Method Details

__construct() public method

Constructor
public __construct ( )

add() public method

public add ( string $name, array $array )
$name string
$array array

get() public method

public get ( string $name, boolean | integer | string | array $default = null ) : boolean | integer | string | array
$name string
$default boolean | integer | string | array
return boolean | integer | string | array

getValues() public method

public getValues ( ) : Collection
return Deployer\Collection\Collection

has() public method

Checks if set var exists.
public has ( string $name ) : boolean
$name string
return boolean

parse() public method

Parse set values.
public parse ( string $value ) : string
$value string
return string

set() public method

public set ( string $name, boolean | integer | string | array $value )
$name string
$value boolean | integer | string | array

setAsProtected() public method

public setAsProtected ( string $name, boolean | integer | string | array $value )
$name string
$value boolean | integer | string | array