PHP Trait Kraken\Util\Factory\FactoryTrait

Afficher le fichier Open project: kraken-php/framework

Protected Properties

Свойство Type Description
$definitions callable[]
$params mixed[]

Méthodes publiques

Méthode Description
__construct ( )
__destruct ( )
bindParam ( $name, $value )
create ( $name, $args = [] )
define ( $name, callable $factoryMethod )
getDefinition ( $name )
getDefinitions ( )
getParam ( $name )
getParams ( )
hasDefinition ( $name )
hasParam ( $param )
remove ( $name )
unbindParam ( $name )

Private Methods

Méthode Description
invoke ( mixed $value ) : mixed

Method Details

__construct() public méthode

public __construct ( )

__destruct() public méthode

public __destruct ( )

bindParam() public méthode

See also: FactoryInterface::bindParam
public bindParam ( $name, $value )

create() public méthode

See also: FactoryInterface::create
public create ( $name, $args = [] )

define() public méthode

See also: FactoryInterface::define
public define ( $name, callable $factoryMethod )
$factoryMethod callable

getDefinition() public méthode

See also: FactoryInterface::getDefinition
public getDefinition ( $name )

getDefinitions() public méthode

See also: FactoryInterface::getDefinitions
public getDefinitions ( )

getParam() public méthode

See also: FactoryInterface::getParam
public getParam ( $name )

getParams() public méthode

See also: FactoryInterface::getParams
public getParams ( )

hasDefinition() public méthode

See also: FactoryInterface::hasDefinition
public hasDefinition ( $name )

hasParam() public méthode

See also: FactoryInterface::hasParam
public hasParam ( $param )

remove() public méthode

See also: FactoryInterface::remove
public remove ( $name )

unbindParam() public méthode

See also: FactoryInterface::unbindParam
public unbindParam ( $name )

Property Details

$definitions protected_oe property

protected callable[] $definitions
Résultat callable[]

$params protected_oe property

protected mixed[] $params
Résultat mixed[]