Пример #1
0
 public function __construct(PhaxReaction $phaxReaction)
 {
     parent::__construct($phaxReaction->jsonSerialize());
 }
Пример #2
0
 /**
  * @param string $message
  * @return \Phax\CoreBundle\Model\PhaxReaction
  * 
  * Build and return a simple message defined in metadata.
  * Usefull for display message in command line mode.
  */
 public function metaMessage($message)
 {
     $reaction = new PhaxReaction();
     $reaction->setMetaMessage($message);
     return $reaction;
 }