24 lines
464 B
PHP
24 lines
464 B
PHP
<?php
|
|
namespace nur\tools;
|
|
|
|
use nur\cli\BgApplication2;
|
|
use nur\sery\output\msg;
|
|
|
|
class SteamTrainApp extends BgApplication2 {
|
|
const NAME = self::class;
|
|
const TITLE = "Train à vapeur";
|
|
//const USE_SIGNAL_HANDLER = true;
|
|
|
|
const ARGS = [
|
|
"merge_arrays" => [BgApplication2::ARGS, parent::ARGS],
|
|
"purpose" => self::TITLE,
|
|
];
|
|
|
|
function main() {
|
|
for ($i = 1; $i <= 100; $i++) {
|
|
msg::print("Tchou-tchou! x $i");
|
|
sleep(1);
|
|
}
|
|
}
|
|
}
|