Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | namespace Apie\Core\ValueObjects; |
| 3 | |
| 4 | use Apie\Core\ValueObjects\Interfaces\ValueObjectInterface; |
| 5 | |
| 6 | /** |
| 7 | * Marker interface for composite values that validation/serialization is done by the composite value object |
| 8 | * and not done by the regular serialization. This is needed if properties depend on each other for validation. |
| 9 | */ |
| 10 | interface CompositeWithOwnValidation extends ValueObjectInterface |
| 11 | { |
| 12 | /** @return array<string|int, mixed> */ |
| 13 | public function toNative(): array; |
| 14 | } |