This class is depicting an Adms Object in order to set up generic methods to all this kind of object class AdmsObject

 Methods

Default constructor

__construct() 

Getter, "magic" function

__get(\type $attribute) : mixed

Parameters

$attribute

\type

the value of the attribute

Returns

mixed

Setter, "magic" function

__set(mixed $attribute, mixed $value) 

Parameters

$attribute

mixed

$value

mixed

This method is used for the intermediary parameter (to be used with @translate())

addParameter(mixed $attribute, mixed $value) 

Parameters

$attribute

mixed

$value

mixed

This method is used for the intermediary types (to be used with @translate())

addType(string $type) 

Parameters

$type

string

the type of the object to be instantiated

Exceptions

\ErrorException if the type is already registered

This method is translating the current object into an array of other object

translate() : array

Returns

arrayan array of instantiated object

 Properties

 

Set the logger

$_logger 

access public
 

The identifier of the object

$id : mixed

access protected
 

The object represented

$object 

access protected
 

The technical status is depicting the state of the object regarding the synchronisation

$tStatus 

access protected
 

The weigt of the object in order to be sorted

$weight 

access protected
 

This array contains the parameters which should be translated

$_params : array

access private
 

This array contains the type of object which should be instantiated

$_types : array

access private