code: public function updateMessage(MessageInterface $message)
      {
          $message->setPostTime(new \DateTime);
          return $this->messageMapper->persist($message);
      }
docs: updateMessage
  
  @param MessageInterface $message
  @return MessageInterface