ApplicationInterface
in
Application interface
Tags
Table of Contents
Methods
- addConfigValue() : ApplicationInterface
- Add new value to config
- config() : mixed
- Access application config
- deleteConfigValue() : ApplicationInterface
- Replace existing value in config
- getName() : string
- Get name
- getVersion() : string
- Get version
- hasName() : bool
- Determine if name is set
- hasVersion() : bool
- Determine if version is set
- load() : ApplicationInterface
- Load application
- mergeConfig() : ApplicationInterface
- Merge new or altered config values with the existing config values
- registerConfig() : ApplicationInterface
- Register a new configuration with the application
- setName() : static
- Set name
- setVersion() : static
- Set version
- updateConfigValue() : ApplicationInterface
- Update existing value in config
Methods
addConfigValue()
Add new value to config
public
addConfigValue(string $name, string $value) : ApplicationInterface
Parameters
- $name : string
- $value : string
Return values
ApplicationInterfaceconfig()
Access application config
public
config() : mixed
deleteConfigValue()
Replace existing value in config
public
deleteConfigValue(string $name) : ApplicationInterface
Parameters
- $name : string
Return values
ApplicationInterfacegetName()
Get name
public
getName() : string
Return values
stringgetVersion()
Get version
public
getVersion() : string
Return values
stringhasName()
Determine if name is set
public
hasName() : bool
Return values
boolhasVersion()
Determine if version is set
public
hasVersion() : bool
Return values
boolload()
Load application
public
load() : ApplicationInterface
Return values
ApplicationInterfacemergeConfig()
Merge new or altered config values with the existing config values
public
mergeConfig(mixed $config[, bool $preserve = false ]) : ApplicationInterface
Parameters
- $config : mixed
- $preserve : bool = false
Return values
ApplicationInterfaceregisterConfig()
Register a new configuration with the application
public
registerConfig(mixed $config) : ApplicationInterface
Parameters
- $config : mixed
Tags
Return values
ApplicationInterfacesetName()
Set name
public
setName(string $name) : static
Parameters
- $name : string
Return values
staticsetVersion()
Set version
public
setVersion(string $version) : static
Parameters
- $version : string
Return values
staticupdateConfigValue()
Update existing value in config
public
updateConfigValue(string $name, string $value) : ApplicationInterface
Parameters
- $name : string
- $value : string