File "GenericEvent.php"

Full Path: /home/fundopuh/trader.fxex.org/vendor/botman/botman/src/Drivers/Events/GenericEvent.php
File size: 758 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace BotMan\BotMan\Drivers\Events;

use BotMan\BotMan\Interfaces\DriverEventInterface;

class GenericEvent implements DriverEventInterface
{
    protected $payload;
    protected $name;

    /**
     * @param $payload
     */
    public function __construct($payload)
    {
        $this->payload = $payload;
    }

    /**
     * Return the event name to match.
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Return the event payload.
     *
     * @return mixed
     */
    public function getPayload()
    {
        return $this->payload;
    }

    /**
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }
}