BaseDependantClass

Extends \org\turbocommons\src\main\php\model\BaseStrictClass

A base class that implements easy dependency injection management

package

Default

Methods

Class constructor initializes required objects

__construct() 

Protection to prevent accessing undefined properties to this class

__get(string $name) : void
inherited

Arguments

$name

string

The property name

Protection to prevent creating extra properties to this class

__set(string $name, string $value) : void
inherited

Arguments

$name

string

The property name

$value

string

The property value

Injects the specified instances as dependencies to this class on the specified properties.

setDependencies(string $instances) : void

Once an instance is injected into a property, only instances of the same type will be allowed to modify the assignment.

Arguments

$instances

string

An associative array with key / value pairs, where key is the name of a private property where the value instance will be injected.