<?php

namespace Ndewez\EventsBundle\Model;

use JMS\Serializer\Annotation as Serializer;

/**
 * Class Event.
 */
class Event
{
    /**
     * @var string
     *
     * @Serializer\Type("string")
     */
    private $title;

    /**
     * @var string
     *
     * @Serializer\Type("string")
     */
    private $namespace;

    /**
     * @var string
     *
     * @Serializer\Type("string")
     */
    private $payload;

    /**
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * @param string $title
     *
     * @return Event
     */
    public function setTitle($title)
    {
        $this->title = $title;

        return $this;
    }

    /**
     * @return string
     */
    public function getNamespace()
    {
        return $this->namespace;
    }

    /**
     * @param string $namespace
     *
     * @return Event
     */
    public function setNamespace($namespace)
    {
        $this->namespace = $namespace;

        return $this;
    }

    /**
     * @return string
     */
    public function getPayload()
    {
        return $this->payload;
    }

    /**
     * @param string $payload
     *
     * @return Event
     */
    public function setPayload($payload)
    {
        $this->payload = $payload;

        return $this;
    }
}
