Interface: IInitable

Interface for universal standard way of the object initialization through the array of parameters.

Details

You should implement this interface in your classes if they have to be initialized.

Known inheritances

Known implementations

Authors

Oleg Schildt

Package

Source code

 

Methods
public

Initialization method.


Method: IInitable::init()

public function init(array $parameters): void;

Initialization method.

Parameters

Name Pass type Value type Default value Description
$parameters by value array

This array may contain any data required for the initialization of the objects of your class.

Returns

void

Throws

\Exception

It might throw an exception in the case of any errors.

Authors

Oleg Schildt

Source code