public function addMessage($message, $label = 'info')
    {
        if ($this->hasCollector('messages')) {
            /** @var \DebugBar\DataCollector\MessagesCollector $collector */
            $collector = $this->getCollector('messages');
            $collector->addMessage($message, $label);
        }
    }
public function addMessage($message, $label = 'info')
    {
        if ($this->hasCollector('messages')) {
            /** @var \DebugBar\DataCollector\MessagesCollector $collector */
            $collector = $this->getCollector('messages');
            $collector->addMessage($message, $label);
        }
    }
public function addMessage ( $ message , $ label = 'info' ) { if ( $ this -> hasCollector ( 'messages' ) ) { /** @var \DebugBar\DataCollector\MessagesCollector $collector */ $ collector = $ this -> getCollector ( 'messages' ) ; $ collector -> addMessage ( $ message , $ label ) ; } }
Adds a message to the MessagesCollector

A message can be anything from an object to a string

@param mixed $message
@param string $label
Adds a message to the MessagesCollector