| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 18 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 16 | public function actionIndex(): void  | 
            ||
| 17 |     { | 
            ||
| 18 |         Cli::printer("Enter interface name: ", "magneta"); | 
            ||
| 19 | $prefix = str_replace(PHP_EOL, "", Cli::reader());  | 
            ||
| 20 | $className = ucfirst($prefix) . 'Interface';  | 
            ||
| 21 | |||
| 22 |         Cli::printer("Enter container: ", "magneta"); | 
            ||
| 23 | $container = ucfirst(str_replace(PHP_EOL, "", Cli::reader()));  | 
            ||
| 24 | |||
| 25 |         if (!empty($container)) { | 
            ||
| 26 | |||
| 27 | $this->writeFile(  | 
            ||
| 28 |                 [str_replace('/', DIRECTORY_SEPARATOR, Rudra::config()->get('app.path') . "/app/Containers/$container/Interface/"), "{$className}.php"], | 
            ||
| 29 | $this->createClass($className, $container)  | 
            ||
| 30 | );  | 
            ||
| 31 | |||
| 32 |         } else { | 
            ||
| 33 | $this->actionIndex();  | 
            ||
| 34 | }  | 
            ||
| 60 |