/** * @param type $msg * @return \Phax\CoreBundle\Model\PhaxReaction * * Build and return a valid phax error response with one message */ public function error($msg) { $reaction = new PhaxReaction(); $reaction->addError($msg); return $reaction; }