PHP 인터페이스 bitExpert\Disco\Store\BeanStore

파일 보기 프로젝트 열기: bitexpert/disco

공개 메소드들

메소드 설명
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.

메소드 상세

add() 공개 메소드

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() 공개 메소드

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

has() 공개 메소드

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
리턴 boolean