PHP Class PHPSA\Configuration

Inheritance: implements Symfony\Component\Config\Definition\ConfigurationInterface
Exibir arquivo Open project: ovr/phpsa Class Usage Examples

Protected Properties

Property Type Description
$configuration array

Public Methods

Method Description
__construct ( array $configuration = [], array $analyzersConfiguration = [] ) Create a configuration from array.
getConfigTreeBuilder ( array $analyzersConfiguration = [] ) : Symfony\Component\Config\Definition\Builder\TreeBuilder Generates the configuration tree.
getValue ( string $key, mixed $default = null ) : mixed Gets a configuration setting.
setValue ( string $key, string $value ) Sets a configuration setting.
valueIsTrue ( string $key ) : boolean Checks if a configuration setting is set.

Method Details

__construct() public method

Create a configuration from array.
public __construct ( array $configuration = [], array $analyzersConfiguration = [] )
$configuration array
$analyzersConfiguration array

getConfigTreeBuilder() public method

Generates the configuration tree.
public getConfigTreeBuilder ( array $analyzersConfiguration = [] ) : Symfony\Component\Config\Definition\Builder\TreeBuilder
$analyzersConfiguration array
return Symfony\Component\Config\Definition\Builder\TreeBuilder

getValue() public method

Gets a configuration setting.
public getValue ( string $key, mixed $default = null ) : mixed
$key string
$default mixed
return mixed

setValue() public method

Sets a configuration setting.
public setValue ( string $key, string $value )
$key string
$value string

valueIsTrue() public method

Checks if a configuration setting is set.
public valueIsTrue ( string $key ) : boolean
$key string
return boolean

Property Details

$configuration protected_oe property

protected array $configuration
return array