| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 9 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 29 | public function run($types) | ||
| 30 |     { | ||
| 31 | // generate the full namespace of the types class based on this function param | ||
| 32 |         if (!class_exists($typeClass = self::TYPES_CLASSES_NAMESPACE . ucwords($types) . self::TYPES_CLASSES_POSTFIX)) { | ||
| 33 |             throw new WrongDocTypeException("The Documentation type ($typeClass) is not supported!"); | ||
| 34 | } | ||
| 35 | |||
| 36 | return $typeClass; | ||
| 37 | } | ||
| 38 | |||
| 40 |