public function blockMsgCommand(): int
    {
        if (!$this->output->supportColor()) {
            $this->write('Current terminal is not support output color text.');

            return 0;
        }

        $this->write('block message:');

        foreach (Show::getBlockMethods() as $type) {
            $this->output->$type("$type style message text");
        }

        return 0;
    }
public function blockMsgCommand(): int
    {
        if (!$this->output->supportColor()) {
            $this->write('Current terminal is not support output color text.');

            return 0;
        }

        $this->write('block message:');

        foreach (Show::getBlockMethods() as $type) {
            $this->output->$type("$type style message text");
        }

        return 0;
    }
public function blockMsgCommand ( ) : int { if ( ! $ this -> output -> supportColor ( ) ) { $ this -> write ( 'Current terminal is not support output color text.' ) ; return 0 ; } $ this -> write ( 'block message:' ) ; foreach ( Show :: getBlockMethods ( ) as $ type ) { $ this -> output -> $ type ( "$type style message text" ) ; } return 0 ; }
output block message text
@return int
output block message text