Feature #3587
Enforce validation rules for value objects already in constructor
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
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)