public function addMessage(Doozr_Form_Service_Component_Message $message)
    {
        $index               = $this->addChild($message);
        $this->index[$index] = self::MESSAGE;

        (!isset($this->indexReverse[self::MESSAGE])) ? $this->indexReverse[self::MESSAGE] = [] : null;
        $this->indexReverse[self::MESSAGE][]                                              = $index;

        return $index;
    }
public function addMessage(Doozr_Form_Service_Component_Message $message)
    {
        $index               = $this->addChild($message);
        $this->index[$index] = self::MESSAGE;

        (!isset($this->indexReverse[self::MESSAGE])) ? $this->indexReverse[self::MESSAGE] = [] : null;
        $this->indexReverse[self::MESSAGE][]                                              = $index;

        return $index;
    }
public function addMessage ( Doozr_Form_Service_Component_Message $ message ) { $ index = $ this -> addChild ( $ message ) ; $ this -> index [ $ index ] = self :: MESSAGE ; ( ! isset ( $ this -> indexReverse [ self :: MESSAGE ] ) ) ? $ this -> indexReverse [ self :: MESSAGE ] = [ ] : null ; $ this -> indexReverse [ self :: MESSAGE ] [ ] = $ index ; return $ index ; }
Adds a message to the group.

@param Doozr_Form_Service_Component_Message $message Instance of message to add

@author Benjamin Carl <opensource@clickalicious.de>

@return int The index of the added message
Adds a message to the group .