| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public function run($types) |
||
| 48 | { |
||
| 49 | // generate the full namespace of the types class based on this function param |
||
| 50 | if (!class_exists($typeClass = self::TYPES_CLASSES_NAMESPACE . ucwords($types) . self::TYPES_CLASSES_POSTFIX)) { |
||
| 51 | throw new WrongDocTypeException("The Documentation type ($typeClass) is not supported!"); |
||
| 52 | } |
||
| 53 | |||
| 54 | // create an instance of the Documentation Type Class and pass it as argument to this task |
||
| 55 | return $this->generateApiDocJsDocsTask->run(new $typeClass()); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |