public function send($type, array $response)
    {
        return $response + array(
                'ToUserName' => $this->getFromUserName(),
                'FromUserName' => $this->getToUserName(),
                'MsgType' => $type,
                'CreateTime' => time(),
            );
    }
public function send($type, array $response)
    {
        return $response + array(
                'ToUserName' => $this->getFromUserName(),
                'FromUserName' => $this->getToUserName(),
                'MsgType' => $type,
                'CreateTime' => time(),
            );
    }
public function send ( $ type , array $ response ) { return $ response + array ( 'ToUserName' => $ this -> getFromUserName ( ) , 'FromUserName' => $ this -> getToUserName ( ) , 'MsgType' => $ type , 'CreateTime' => time ( ) , ) ; }
Generate message for output

@param string $type The type of message
@param array $response The response content
@return array
Generate message for output