| Code Coverage | ||||||||||
| Lines | Functions and Methods | Classes and Traits | ||||||||
| Total |  | 100.00% | 1 / 1 |  | 100.00% | 1 / 1 | CRAP |  | 100.00% | 1 / 1 | 
| FileExtension |  | 100.00% | 1 / 1 |  | 100.00% | 1 / 1 | 1 |  | 100.00% | 1 / 1 | 
| getRegularExpression |  | 100.00% | 1 / 1 |  | 100.00% | 1 / 1 | 1 | |||
| 1 | <?php | 
| 2 | namespace Apie\Export\ValueObjects; | 
| 3 | |
| 4 | use Apie\Core\ValueObjects\Interfaces\StringValueObjectInterface; | 
| 5 | use Apie\Core\ValueObjects\IsStringWithRegexValueObject; | 
| 6 | |
| 7 | class FileExtension implements StringValueObjectInterface | 
| 8 | { | 
| 9 | use IsStringWithRegexValueObject; | 
| 10 | |
| 11 | public static function getRegularExpression(): string | 
| 12 | { | 
| 13 | return '/^[a-zA-Z0-9]{1,10}(\.[a-zA-Z0-9]{1,10})*$/'; | 
| 14 | } | 
| 15 | } |