| 1 | <?php |
||
| 19 | trait MessageMapperTrait |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Factory create object from message. |
||
| 23 | * |
||
| 24 | * @param mixed $message |
||
| 25 | * |
||
| 26 | * @return static |
||
| 27 | */ |
||
| 28 | public static function createFrom($message) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Factory create |
||
| 35 | * |
||
| 36 | * @param string $method |
||
| 37 | * @param mixed $message |
||
| 38 | * |
||
| 39 | * @return static |
||
| 40 | */ |
||
| 41 | public static function factory($method, $message) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Map message to object. |
||
| 48 | * |
||
| 49 | * @param mixed $message |
||
| 50 | * |
||
| 51 | * @return MessageMapperDispatcher |
||
| 52 | */ |
||
| 53 | public function from($message) |
||
| 61 | } |
||
| 62 |