src/core/AbstractCliCtrl.php
protected function print(string $msg, bool $withTime = true): void
    {
        $preMsg = '';
        if ($withTime) {
            $preMsg = (new \DateTime('now'))->format('H:i:s')."\t";
        }
        echo "{$preMsg}{$msg}".\PHP_EOL;
    }
protected function print(string $msg, bool $withTime = true): void
    {
        $preMsg = '';
        if ($withTime) {
            $preMsg = (new \DateTime('now'))->format('H:i:s')."\t";
        }
        echo "{$preMsg}{$msg}".\PHP_EOL;
    }
protected function print ( string $ msg , bool $ withTime = true ) : void { $ preMsg = '' ; if ( $ withTime ) { $ preMsg = ( new \ DateTime ( 'now' ) ) -> format ( 'H:i:s' ) . "\t" ; } echo "{$preMsg}{$msg}" . \ PHP_EOL ; }
It prints passed message to the console.
@param string $msg Message to print.
@param bool $withTime Flag to print with previous timestamp.
@return void
It prints passed message to the console .