2019-01-20 10:52:30 +01:00

761 B

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.

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.