<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TravelOrganizer
 *
 * @ORM\Table(name="travel_organizer")
 * @ORM\Entity
 */
class TravelOrganizer
{
    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=255, nullable=true)
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(name="insolvency", type="string", length=255, nullable=true)
     */
    private $insolvency;

     /**
     * @var string
     *
     * @ORM\Column(name="legal_rights", type="text", length=65535, nullable=false)
     */
    private $legalRights;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="rules_updated", type="date", nullable=true)
     */
    private $rulesUpdated;

    /**
     * @var string
     *
     * @ORM\Column(name="file_name", type="string", length=255, nullable=true)
     */
    private $fileName;

    /**
     * @var integer
     *
     * @ORM\Column(name="cms_id", type="integer", nullable=true)
     */
    private $cmsId;

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;



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

        return $this;
    }

    /**
     * Get name
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

      /**
     * Set insolvency
     *
     * @param string $insolvency
     *
     * @return TravelOrganizer
     */
    public function setInsolvency($insolvency)
    {
        $this->insolvency = $insolvency;

        return $this;
    }

    /**
     * Get insolvency
     *
     * @return string
     */
    public function getInsolvency()
    {
        return $this->insolvency;
    }

    /**
     * Set legalRights
     *
     * @param string $legalRights
     *
     * @return TravelOrganizer
     */
    public function setLegalRights($legalRights)
    {
        $this->legalRights = $legalRights;

        return $this;
    }

    /**
     * Get legalRights
     *
     * @return string
     */
    public function getLegalRights()
    {
        return $this->legalRights;
    }


    /**
     * Set rulesUpdated
     *
     * @param \DateTime $rulesUpdated
     *
     * @return TravelOrganizer
     */
    public function setRulesUpdated($rulesUpdated)
    {
        $this->rulesUpdated = $rulesUpdated;

        return $this;
    }

    /**
     * Get rulesUpdated
     *
     * @return \DateTime
     */
    public function getRulesUpdated()
    {
        return $this->rulesUpdated;
    }

    /**
     * Set fileName
     *
     * @param string $fileName
     *
     * @return TravelOrganizer
     */
    public function setFileName($fileName)
    {
        $this->fileName = $fileName;

        return $this;
    }

    /**
     * Get fileName
     *
     * @return string
     */
    public function getFileName()
    {
        return $this->fileName;
    }

    /**
     * Set cmsId
     *
     * @param integer $cmsId
     *
     * @return TravelOrganizer
     */
    public function setCmsId($cmsId)
    {
        $this->cmsId = $cmsId;

        return $this;
    }

    /**
     * Get cmsId
     *
     * @return integer
     */
    public function getCmsId()
    {
        return $this->cmsId;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
}
