Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 4 |
Hello | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 4 |
run | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 4 |
<?php namespace App\Commands; | |
use App\Models\Users; | |
use Framework\CLI\CLI; | |
use Framework\CLI\Command; | |
class Hello extends Command | |
{ | |
protected string $name = 'hello'; | |
protected string $description = 'Display hello'; | |
public function run(array $options = [], array $arguments = []) : void | |
{ | |
$name = CLI::prompt('What is your name'); | |
CLI::write("Hello, {$name}!"); | |
/*$users = new Users(); | |
$u = $users->paginate(1); | |
CLI::write(\print_r($u, true));*/ | |
//\var_dump(\get_included_files()); | |
} | |
} |