| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 8 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 5 | 
| CRAP Score | 1 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 15 | 3 | public static function forExtensionIdentifier(BaseExtension $extension, string $identifier) : self  | 
            |
| 16 |     { | 
            ||
| 17 | 3 | return new self(sprintf(  | 
            |
| 18 | 3 | '%s identifier: %s is not valid; it must comprise only ASCII alphanumerics and hyphen',  | 
            |
| 19 | 3 | get_class($extension),  | 
            |
| 20 | 3 | $identifier  | 
            |
| 21 | ));  | 
            ||
| 22 | }  | 
            ||
| 23 | }  | 
            ||
| 24 |