| 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\Interfaces; | 
| 3 | |
| 4 | /** | 
| 5 | * Add this interface to indicate a minimum and/or maximum string size. This metadata can be | 
| 6 | * used for example for picking a different strategy for string or knowing if an empty string | 
| 7 | * is valid data. It's not needed if HasRegexValueObjectInterface is implemented and it can be determined | 
| 8 | * from the regular expression. | 
| 9 | */ | 
| 10 | interface LengthConstraintStringValueObjectInterface extends ValueObjectInterface | 
| 11 | { | 
| 12 | public static function minStringLength(): int; | 
| 13 | |
| 14 | public static function maxStringLength(): ?int; | 
| 15 | |
| 16 | public function toNative(): string; | 
| 17 | } |