Feature #3587

Enforce validation rules for value objects already in constructor

Added by Robert Lemke over 10 years ago. Updated about 9 years ago.

Status:
New
Priority:
Could have
Assignee:
-
Category:
Validation
Target version:
-
Start date:
2009-06-05
Due date:
% Done:

0%

PHP Version:
Has patch:
Complexity:

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 over 10 years ago

  • Target version changed from 1.0 alpha 2 to 283

#2 Updated by Robert Lemke over 10 years ago

  • Target version changed from 283 to 1.0 alpha 3

#3 Updated by Robert Lemke over 10 years ago

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

#4 Updated by Robert Lemke about 10 years ago

  • Target version deleted (1.0 alpha 4)

Also available in: Atom PDF