public function addMessage($message, string $label = 'info'): void
    {
        if (! \is_string($message)) {
            $message = $this->cloneVar($message);
        }

        $this->messages[] = [
            'message' => \is_string($message) ? $message : $this->cloneVar($message),
            'label'   => $label,
            'time'    => \microtime(true),
        ];
    }
public function addMessage($message, string $label = 'info'): void
    {
        if (! \is_string($message)) {
            $message = $this->cloneVar($message);
        }

        $this->messages[] = [
            'message' => \is_string($message) ? $message : $this->cloneVar($message),
            'label'   => $label,
            'time'    => \microtime(true),
        ];
    }
public function addMessage ( $ message , string $ label = 'info' ) : void { if ( ! \ is_string ( $ message ) ) { $ message = $ this -> cloneVar ( $ message ) ; } $ this -> messages [ ] = [ 'message' => \ is_string ( $ message ) ? $ message : $ this -> cloneVar ( $ message ) , 'label' => $ label , 'time' => \ microtime ( true ) , ] ; }
Adds a message.

A message can be anything from an object to a string.

@param mixed  $message
@param string $label

@return void
Adds a message .