Display a message in console.

@param $message
@param string $type
558669
public function message($message, $type = 'line')
    {
        if (! is_null($this->command)) {
            $this->command->{$type}($message);
        }
    }
728057
private function type($message, $type)
    {
        $this->type = $type;

        $this->message = $message;

        return $this;
    }
1172524
protected function notify($message, $type = 'info')
    {
        if ($this->notifier) {
            $messages = is_array($message) ? $message : [$message];
            foreach ($messages as $text) {
                if ($type === 'error') {
                    $this->notifier->error($text);
                } else {
                    $this->notifier->info($text);
                }
            }
        }

        return $this;
    }
520503
protected function outputCustomFormatMessages($messages, $type)
    {
        foreach ($messages as $line => $messagesPerLine) {
            foreach ($messagesPerLine as $column => $messagesPerColumn) {
                foreach ($messagesPerColumn as $message) {
                    $msgType = $message['type'];
                    if ($type == $msgType) {
                        $logLevel = Project::MSG_INFO;
                        if ($msgType == 'ERROR') {
                            $logLevel = Project::MSG_ERR;
                        } else {
                            if ($msgType == 'WARNING') {
                                $logLevel = Project::MSG_WARN;
                            }
                        }
                        $text = $message['message'];
                        $string = $msgType . ' in line ' . $line . ' column ' . $column . ': ' . $text;
                        $this->log($string, $logLevel);
                    }
                }
            }
        }
    }
1033580
public function setError($type, $message) {
        switch ($type) {
            case 'q':
                $this->error = array('QueryBuilderError' => $message);
                break;
            case 'd':
                $this->error = array('DatabaseError' => $message);
                break;
            default:
                $this->error = array('Error' => $message);
        }
    }
1252272
public function add($type, $message, $title = null)
    {
        $notifications = $this->getNotifications();

        $notifications[] = [
            'type'    => $type,
            'message' => $message,
            'title'   => $title
        ];

        $this->session->flash(self::SESSION_KEY, $notifications);
    }
113742
protected function message($message, $title = '', $type = 'info')
	{
		$this->message = $message;
		$this->title = $title;
		$this->type = $type;
		$this->session->flash($this->namespace, (array) $this);
	}
832250
public function notice($message, $type = null)
  {
    $type = is_null($type)
      ? 'info'
      : (is_bool($type)
        ? ($type
          ? 'success'
          : 'error')
        : $type);

    $this->getSession()->getFlashBag()->add($type, $message);

    return $this;
  }
612239
public function message($type, $message)
    {
        if (isset($this->cssClasses[$type])) {
            $html = '<div class="%s">%s</div>';
            $this->messages[] = sprintf($html, $this->cssClasses[$type], $message);
            $this->session->set($this->flashKey, $this->messages);
        }
    }
493214
public function _message($type, $message)
    {
        $cssClasses = isset($this->_cssClasses[$type]) ? $this->_cssClasses[$type] : '';

        $defaultMessages = [];
        $messages = $this->session->get($this->_sessionKey, $defaultMessages);
        $messages[] = '<div class="' . $cssClasses . '">' . $message . '</div>' . PHP_EOL;
        $this->session->set($this->_sessionKey, $messages);
    }
50236
public function addMessage($message, $type) {
		if(!($this->session->get($this->sessionKey, [])) == null)
		{
			$messages = $this->session->get($this->sessionKey, []);
		}
		
		$messages[] = [
			'message' => $message,
			'type' => $type,
		];
		
		$this->session->set($this->sessionKey, $messages);
	}
107982
public function printMessage($string, $type = 'comment', $force = true): void
    {
        if ($this->isPrintable($force)) {
            echo $this->getMessageWithColor($string, $this->getMessageBackgroundColor($type));
            echo "\n";
        }
    }
667188
public function _message($type, $message)
    {
        $context = $this->_context;

        $cssClasses = isset($this->_cssClasses[$type]) ? $this->_cssClasses[$type] : '';

        $context->messages[] = '<div class="' . $cssClasses . '">' . $message . '</div>' . PHP_EOL;
    }
515418
public function log($type, Message $mail): void
	{
		$timestamp = date('Y-m-d H:i:s');
		$type .= '.' . time();
		$file = $this->getLogFile($type, $timestamp);

		if (file_exists($file) && filesize($file)) {
			$file = str_replace(
				static::LOG_EXTENSION,
				'.' . uniqid() . static::LOG_EXTENSION,
				$file
			);
		}

		file_put_contents($file, $mail->generateMessage());
	}
702651
public function message($type, $message)
    {
        if ( $this->session->has('flashMessages') ) {
            $flashMessages = $this->session->get('flashMessages');
            $flashMessages[] = ['type' => $type, 'message' => $message];
            $this->session->set('flashMessages', $flashMessages);
        } else {
            $this->session->set('flashMessages', [['type' => $type, 'message' => $message]]);
        }
    }
1027714
public function set($type, $message)
    {
        $type = StaticFilter::filter('number', $type);
        if ($type < 0 || $type > 3) {
            $type = static::TYPE_INFO;
        }
        $this->_messages[$type][] = $message;
        $this->getSession()->set('_messages_', $this->_messages);
        return $this;
    }
200179
protected function createNotification(string $title, string $message, string $type): array
    {
        if (!in_array($type, Notification::TYPES))
        {
            $allowed_types = implode(', ', Notification::TYPES);
            throw new InvalidArgumentException("Wrong notification \$type '{$type}'. Use only '{$allowed_types}' types.");
        }

        return [
            'title' => $title,
            'message' => $message,
            'type' => $type,
        ];
    }