| Conditions | 5 | 
| Paths | 5 | 
| Total Lines | 17 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 11 | 
| CRAP Score | 5 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 19 | 5 | public function map(string $type)  | 
            |
| 20 |     { | 
            ||
| 21 | 5 | $type = strtolower($type);  | 
            |
| 22 | |||
| 23 |         switch ($type) { | 
            ||
| 24 | 5 | case 'psrlogmessage':  | 
            |
| 25 | 1 | return PsrLogMessageProcessorFactory::class;  | 
            |
| 26 | 4 | case 'introspection':  | 
            |
| 27 | 1 | return IntrospectionProcessorFactory::class;  | 
            |
| 28 | 3 | case 'web':  | 
            |
| 29 | 1 | return WebProcessorFactory::class;  | 
            |
| 30 | 2 | case 'memoryusage':  | 
            |
| 31 | 1 | return MemoryUsageProcessorFactory::class;  | 
            |
| 32 | }  | 
            ||
| 33 | |||
| 34 | 1 | return null;  | 
            |
| 35 | }  | 
            ||
| 36 | }  | 
            ||
| 37 |