<commit_before><?php
/*
 * This file is part of the codeliner/psb-bernard-dispatcher.
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 * 
 * Date: 31.10.14 - 15:16
 */

namespace Prooph\ServiceBus\Message\Bernard;

use Bernard\Message;
use Prooph\Common\Messaging\RemoteMessage;

/**
 * Class BernardMessage
 *
 * @package Prooph\ServiceBus\Message\Bernard
 * @author <NAME> <<EMAIL>>
 */
class BernardMessage implements Message
{
    /**
     * @var RemoteMessage
     */
    private $remoteMessage;

    public static function fromRemoteMessage(RemoteMessage $remoteMessage) {
        $instance = new self();
        $instance->remoteMessage = $remoteMessage;
        return $instance;
    }
    /**
     * @return string
     */
    public function getName()
    {
        return $this->remoteMessage->name();
    }

    /**
     * @return array
     */
    public function toArray()
    {
        return $this->remoteMessage->toArray();
    }

    /**
     * @return RemoteMessage
     */
    public function getRemteMessage()
    {
        return $this->remoteMessage;
    }
}
 <commit_msg>Fix wrong message name<commit_after><?php
/*
 * This file is part of the codeliner/psb-bernard-dispatcher.
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 * 
 * Date: 31.10.14 - 15:16
 */

namespace Prooph\ServiceBus\Message\Bernard;

use Bernard\Message;
use Prooph\Common\Messaging\RemoteMessage;

/**
 * Class BernardMessage
 *
 * @package Prooph\ServiceBus\Message\Bernard
 * @author <NAME> <<EMAIL>>
 */
class BernardMessage implements Message
{
    /**
     * @var RemoteMessage
     */
    private $remoteMessage;

    public static function fromRemoteMessage(RemoteMessage $remoteMessage) {
        $instance = new self();
        $instance->remoteMessage = $remoteMessage;
        return $instance;
    }
    /**
     * @return string
     */
    public function getName()
    {
        return $this->remoteMessage->name();
    }

    /**
     * @return array
     */
    public function toArray()
    {
        return $this->remoteMessage->toArray();
    }

    /**
     * @return RemoteMessage
     */
    public function getRemoteMessage()
    {
        return $this->remoteMessage;
    }
}
 
{'fraction_non_alphanumeric': 0.12189054726368159, 'fraction_numerical': 0.008291873963515755, 'mean_word_length': 2.5695266272189348, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1840479', 'n_tokens_mistral': 724, 'n_tokens_neox': 696, 'n_words': 177}