interface IContainer implements IComponent

Containers are objects that logically contain zero or more IComponent components.

Methods

addComponent(IComponent $component, $name)

Adds the specified component to the IContainer.

void
removeComponent(IComponent $component)

Removes a component from the IContainer.

IComponent|null
getComponent($name)

Returns single component.

getComponents($deep = false, $filterType = null)

Iterates over a components.

Details

at line 23
IContainer addComponent(IComponent $component, $name)

Adds the specified component to the IContainer.

Parameters

IComponent $component
$name

Return Value

IContainer

at line 30
void removeComponent(IComponent $component)

Removes a component from the IContainer.

Parameters

IComponent $component

Return Value

void

at line 37
IComponent|null getComponent($name)

Returns single component.

Parameters

$name

Return Value

IComponent|null

at line 45
Iterator getComponents($deep = false, $filterType = null)

Iterates over a components.

Parameters

$deep
$filterType

Return Value

Iterator