PHP 클래스 SelvinOrtiz\Zit\Zit

Class Zit
저자: Selvin Ortiz - https://selvinortiz.com
상속: implements SelvinOrtiz\Zit\IZit
파일 보기 프로젝트 열기: johndwells/craft.minimee 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$callables
$instances
$services

공개 메소드들

메소드 설명
__call ( $id, $args = [] )
__callStatic ( $id, $args = [] )
__get ( $id )
bind ( string $id, Closure $serviceGenerator ) Binds the service generator and resolves it by its id
extend ( string $id, Closure $callable ) Binds the callable function and executes it by its id
getInstance ( ) : object Instantiate Zit or the extending, statically called class
stash ( string $id, object $serviceInstance ) Stashes away a service instance and resolves it by its id

보호된 메소드들

메소드 설명
__clone ( )
__construct ( )
pop ( $id, $args = [] )

메소드 상세

__call() 공개 메소드

public __call ( $id, $args = [] )

__callStatic() 공개 정적인 메소드

public static __callStatic ( $id, $args = [] )

__clone() 보호된 메소드

protected __clone ( )

__construct() 보호된 메소드

protected __construct ( )

__get() 공개 메소드

public __get ( $id )

bind() 공개 메소드

Binds the service generator and resolves it by its id
public bind ( string $id, Closure $serviceGenerator )
$id string The service generator id
$serviceGenerator Closure The service generator closure/function

extend() 공개 메소드

Binds the callable function and executes it by its id
public extend ( string $id, Closure $callable )
$id string The callable function id
$callable Closure The callable function

getInstance() 공개 정적인 메소드

Instantiate Zit or the extending, statically called class
public static getInstance ( ) : object
리턴 object

pop() 보호된 메소드

protected pop ( $id, $args = [] )

stash() 공개 메소드

Stashes away a service instance and resolves it by its id
public stash ( string $id, object $serviceInstance )
$id string The service instance id
$serviceInstance object The service instance

프로퍼티 상세

$callables 보호되어 있는 프로퍼티

protected $callables

$instances 보호되어 있는 정적으로 프로퍼티

protected static $instances

$services 보호되어 있는 프로퍼티

protected $services