Feature #3587

Enforce validation rules for value objects already in constructor

Added by Robert Lemke about 6 years ago. Updated almost 5 years ago.

Status:New Start date:2009-06-05
Priority:Could have Due date:
Assigned To:- % Done:

0%

Category:Validation
Target version:-
PHP Version: Complexity:
Has patch:

Description

Because the values of a value object can't be changed after instantiation, we should assure that only valid value objects exist. This should be done by validating the constructor arguments already in the constructor.

The validation mechanism should be introduced by some aspect (@around the constructor) and throw an exception if validation fails.


Related issues

related to TYPO3.Flow - Major Feature #3585: Implement support for value objects New 2009-06-05

History

#1 Updated by Robert Lemke about 6 years ago

  • Target version changed from 1.0 alpha 2 to 283

#2 Updated by Robert Lemke about 6 years ago

  • Target version changed from 283 to 1.0 alpha 3

#3 Updated by Robert Lemke about 6 years ago

  • Target version changed from 1.0 alpha 3 to 1.0 alpha 4

#4 Updated by Robert Lemke almost 6 years ago

  • Target version deleted (1.0 alpha 4)

Also available in: Atom PDF