PHP Interface bitExpert\Disco\Store\BeanStore

Show file Open project: bitexpert/disco

Public Methods

Method Description
add ( string $beanId, mixed $bean ) Adds given $bean instance (or primitive) to the bean store by the given $beanId.
get ( string $beanId ) : mixed Retrieves bean instance for $beanId.
has ( string $beanId ) : boolean Checks if a bean instance for $beanId exists. Will return true if an instance exists and false if no instance can be found.

Method Details

add() public method

Adds given $bean instance (or primitive) to the bean store by the given $beanId.
public add ( string $beanId, mixed $bean )
$beanId string
$bean mixed

get() public method

Retrieves bean instance for $beanId.
public get ( string $beanId ) : mixed
$beanId string
return mixed

has() public method

Checks if a bean instance for $beanId exists. Will return true if an instance exists and false if no instance can be found.
public has ( string $beanId ) : boolean
$beanId string
return boolean