PHP Class WPKB\ServiceContainer

Inheritance: implements ArrayAcces\ArrayAccess
显示文件 Open project: ibericode/wp-knowledge-base Class Usage Examples

Protected Properties

Property Type Description
$resolved_services array
$services array

Public Methods

Method Description
get ( $name ) : mixed
has ( $name ) : boolean
offsetExists ( mixed $offset ) : boolean (PHP 5 >= 5.0.0)
Whether a offset exists
offsetGet ( mixed $offset ) : mixed (PHP 5 >= 5.0.0)
Offset to retrieve
offsetSet ( mixed $offset, mixed $value ) : void (PHP 5 >= 5.0.0)
Offset to set
offsetUnset ( mixed $offset ) : void (PHP 5 >= 5.0.0)
Offset to unset

Method Details

get() public method

public get ( $name ) : mixed
$name
return mixed

has() public method

public has ( $name ) : boolean
$name
return boolean

offsetExists() public method

(PHP 5 >= 5.0.0)
Whether a offset exists
public offsetExists ( mixed $offset ) : boolean
$offset mixed

An offset to check for.

return boolean true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned.

offsetGet() public method

(PHP 5 >= 5.0.0)
Offset to retrieve
public offsetGet ( mixed $offset ) : mixed
$offset mixed

The offset to retrieve.

return mixed Can return all value types.

offsetSet() public method

(PHP 5 >= 5.0.0)
Offset to set
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed

The offset to assign the value to.

$value mixed

The value to set.

return void

offsetUnset() public method

(PHP 5 >= 5.0.0)
Offset to unset
public offsetUnset ( mixed $offset ) : void
$offset mixed

The offset to unset.

return void

Property Details

$resolved_services protected_oe property

protected array $resolved_services
return array

$services protected_oe property

protected array $services
return array