PHP Class PHPDaemon\Config\Section

Author: Vasily Zorin ([email protected])
Inheritance: implements ArrayAccess, use trait PHPDaemon\Traits\ClassWatchdog
Show file Open project: kakserpom/phpdaemon

Public Properties

Property Type Description
$revision
$source

Public Methods

Method Description
__construct ( $arr = [] ) : object Constructor
count ( ) : integer Count elements
getRealPropertyName ( $prop ) : string Get real property name
imposeDefault ( $settings = [] ) : void Impose default config
offsetExists ( $prop ) : boolean Checks if property exists
offsetGet ( $prop ) : mixed Get property by name
offsetSet ( $prop, $value ) : void Set property
offsetUnset ( $prop ) : void Unset property
toArray ( ) : hash toArray handler

Method Details

__construct() public method

Constructor
public __construct ( $arr = [] ) : object
return object

count() public method

Count elements
public count ( ) : integer
return integer

getRealPropertyName() public method

Get real property name
public getRealPropertyName ( $prop ) : string
return string Real property name

imposeDefault() public method

Impose default config
public imposeDefault ( $settings = [] ) : void
return void

offsetExists() public method

Checks if property exists
public offsetExists ( $prop ) : boolean
return boolean Exists?

offsetGet() public method

Get property by name
public offsetGet ( $prop ) : mixed
return mixed

offsetSet() public method

Set property
public offsetSet ( $prop, $value ) : void
return void

offsetUnset() public method

Unset property
public offsetUnset ( $prop ) : void
return void

toArray() public method

toArray handler
public toArray ( ) : hash
return hash

Property Details

$revision public property

public $revision

$source public property

public $source