public function getUser(IncomingMessage $matchingMessage)
    {
        $payload = $matchingMessage->getPayload();

        return new User($payload->get('message')['from']['id'], $payload->get('message')['from']['name'], null,
            $payload->get('message')['from']['mention_name']);
    }
public function getUser(IncomingMessage $matchingMessage)
    {
        $payload = $matchingMessage->getPayload();

        return new User($payload->get('message')['from']['id'], $payload->get('message')['from']['name'], null,
            $payload->get('message')['from']['mention_name']);
    }
public function getUser ( IncomingMessage $ matchingMessage ) { $ payload = $ matchingMessage -> getPayload ( ) ; return new User ( $ payload -> get ( 'message' ) [ 'from' ] [ 'id' ] , $ payload -> get ( 'message' ) [ 'from' ] [ 'name' ] , null , $ payload -> get ( 'message' ) [ 'from' ] [ 'mention_name' ] ) ; }
Retrieve User information.
@param \BotMan\BotMan\Messages\Incoming\IncomingMessage $matchingMessage
@return User
Retrieve User information .