public static function printMessages($clearQueue = true)
    {
        if (!empty($_SESSION[__TRAIT__])) {
            /** @var Message $message */
            foreach ($_SESSION[__TRAIT__] as $message) {
                $message->output();
            }
        }

        if ($clearQueue) {
            static::clearQueue();
        }
    }
public static function printMessages($clearQueue = true)
    {
        if (!empty($_SESSION[__TRAIT__])) {
            /** @var Message $message */
            foreach ($_SESSION[__TRAIT__] as $message) {
                $message->output();
            }
        }

        if ($clearQueue) {
            static::clearQueue();
        }
    }
public static function printMessages ( $ clearQueue = true ) { if ( ! empty ( $ _SESSION [ __TRAIT__ ] ) ) { /** @var Message $message */ foreach ( $ _SESSION [ __TRAIT__ ] as $ message ) { $ message -> output ( ) ; } } if ( $ clearQueue ) { static :: clearQueue ( ) ; } }
Output messages to a command line.

@param bool $clearQueue
Is message queue should be cleared after output?
Output messages to a command line .