PHP Класс SelvinOrtiz\Zit\Zit

Class Zit
Автор: Selvin Ortiz - https://selvinortiz.com
Наследование: implements SelvinOrtiz\Zit\IZit
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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