PHP Trait Kraken\Util\Factory\FactoryTrait

Show file Open project: kraken-php/framework

Protected Properties

Property Type Description
$definitions callable[]
$params mixed[]

Public Methods

Method 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

Method Description
invoke ( mixed $value ) : mixed

Method Details

__construct() public method

public __construct ( )

__destruct() public method

public __destruct ( )

bindParam() public method

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

create() public method

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

define() public method

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

getDefinition() public method

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

getDefinitions() public method

See also: FactoryInterface::getDefinitions
public getDefinitions ( )

getParam() public method

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

getParams() public method

See also: FactoryInterface::getParams
public getParams ( )

hasDefinition() public method

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

hasParam() public method

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

remove() public method

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

unbindParam() public method

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

Property Details

$definitions protected property

protected callable[] $definitions
return callable[]

$params protected property

protected mixed[] $params
return mixed[]