Attribut
This folder containes the attributs which are used by entity, domain logic etc.
Structure
Each attribut containes out of an interface and a trait.
Interface
The interface MUST define a get- and a set-method. Optional an interface can define a has-method. For meta processing an interface SHOULD contain one constant which is named by the schema _<>ATTRIBUT_NAME. An interface MUST NOT implement other constants.
Methods
Set
The setter MUST return nothing(void). It SHOULD throw an exception if the value is not valid.
Get
The getter MUST return the attribute. Void is not allowed.
Has
has must return an boolean. True if the attribut is defined, otherwise false.
Trait
The trait represents the implementation of the interface. Also it contains an private or protected attribute, which is modified by the methods which are defined in the interface.