src/Entity/League/League.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Entity\League;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. /**
  7.  * League
  8.  *
  9.  * @ORM\Table(name="tam_leagues")
  10.  * @ORM\Entity(repositoryClass="App\Repository\League\LeagueRepository")
  11.  * @ORM\HasLifecycleCallbacks
  12.  */
  13. class League
  14. {
  15.     /**
  16.      * @var int
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="IDENTITY")
  21.      */
  22.     private $id;
  23.     
  24.     /**
  25.      * @ORM\OneToOne(targetEntity="App\Entity\User", inversedBy="league", cascade={"persist", "remove"})
  26.      * @ORM\JoinColumn(name="tam_user", referencedColumnName="id", onDelete="CASCADE", nullable=false)
  27.      */
  28.     private $user;
  29.     
  30.     /**
  31.      * @var integer
  32.      *
  33.      * @ORM\Column(name="old_id", type="integer", nullable=true)
  34.      */
  35.     private $oldId;
  36.     
  37.     /**
  38.      * @var string
  39.      *
  40.      * @ORM\Column(name="website", type="string", length=255, nullable=true)
  41.      */
  42.     private $website;
  43.     
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="phone", type="string", length=255, nullable=true)
  48.      */
  49.     private $phone;
  50.     
  51.     /**
  52.      * @var string
  53.      *
  54.      * @ORM\Column(name="description", type="text", length=255, nullable=true)
  55.      */
  56.     private $description;
  57.     
  58.     /**
  59.      * @var boolean
  60.      *
  61.      * @ORM\Column(name="distributor_gc", type="boolean", options={"default": FALSE})
  62.      */
  63.     private $distributorGc;
  64.     
  65.     /**
  66.      * @var boolean
  67.      *
  68.      * @ORM\Column(name="distributor_ch", type="boolean", options={"default": FALSE})
  69.      */
  70.     private $distributorCh;
  71.     
  72.     /**
  73.      * @var \DateTime
  74.      *
  75.      * @ORM\Column(name="date_ask_access", type="datetime", nullable=true)
  76.      */
  77.     private $dateAskAccess;
  78.     
  79.     /**
  80.      * @var \DateTime
  81.      *
  82.      * @ORM\Column(name="date_ask_access_granted", type="datetime", nullable=true)
  83.      */
  84.     private $dateAskAccessGranted;
  85.     
  86.     
  87.     public function __construct()
  88.     {
  89.         $this->distributorGc false;
  90.         $this->distributorCh false;
  91.     }
  92.     /**
  93.      * Get id
  94.      *
  95.      * @return int
  96.      */
  97.     public function getId()
  98.     {
  99.         return $this->id;
  100.     }
  101.     
  102.     /**
  103.      * Set User
  104.      *
  105.      * @param \App\Entity\User $user
  106.      *
  107.      * @return League
  108.      */
  109.     public function setUser(\App\Entity\User $user)
  110.     {
  111.         $this->user $user;
  112.         return $this;
  113.     }
  114.     /**
  115.      * Get user
  116.      *
  117.      * @return \App\Entity\User
  118.      */
  119.     public function getUser()
  120.     {
  121.         return $this->user;
  122.     }
  123.     
  124.     /**
  125.      * Set oldId
  126.      *
  127.      * @param integer $oldId
  128.      *
  129.      * @return Club
  130.      */
  131.     public function setOldId($oldId)
  132.     {
  133.         $this->oldId $oldId;
  134.         return $this;
  135.     }
  136.     /**
  137.      * Get oldId
  138.      *
  139.      * @return integer
  140.      */
  141.     public function getOldId()
  142.     {
  143.         return $this->oldId;
  144.     }
  145.     
  146.     /**
  147.      * Set website
  148.      *
  149.      * @param string $website
  150.      *
  151.      * @return Club
  152.      */
  153.     public function setWebsite($website)
  154.     {
  155.         $this->website strtolower($website);
  156.         return $this;
  157.     }
  158.     /**
  159.      * Get website
  160.      *
  161.      * @return string
  162.      */
  163.     public function getWebsite()
  164.     {
  165.         return $this->website;
  166.     }
  167.     
  168.     /**
  169.      * Set phone
  170.      *
  171.      * @param string $phone
  172.      *
  173.      * @return League
  174.      */
  175.     public function setPhone($phone)
  176.     {
  177.         $this->phone $phone;
  178.         return $this;
  179.     }
  180.     /**
  181.      * Get phone
  182.      *
  183.      * @return string
  184.      */
  185.     public function getPhone()
  186.     {
  187.         return $this->phone;
  188.     }
  189.     
  190.     
  191.     /**
  192.      * Set description
  193.      *
  194.      * @param string $description
  195.      *
  196.      * @return League
  197.      */
  198.     public function setDescription($description)
  199.     {
  200.         $this->description $description;
  201.         return $this;
  202.     }
  203.     /**
  204.      * Get description
  205.      *
  206.      * @return string
  207.      */
  208.     public function getDescription()
  209.     {
  210.         return $this->description;
  211.     }
  212.     
  213.     
  214.     /**
  215.      * Set distributorGc
  216.      *
  217.      * @param boolean $distributorGc
  218.      *
  219.      * @return Club
  220.      */
  221.     public function setDistributorGc($distributorGc)
  222.     {
  223.         $this->distributorGc $distributorGc;
  224.         return $this;
  225.     }
  226.     /**
  227.      * Get distributorGc
  228.      *
  229.      * @return boolean
  230.      */
  231.     public function getDistributorGc()
  232.     {
  233.         return $this->distributorGc;
  234.     }
  235.     
  236.     /**
  237.      * Set distributorCh
  238.      *
  239.      * @param boolean $distributorCh
  240.      *
  241.      * @return Club
  242.      */
  243.     public function setDistributorCh($distributorCh)
  244.     {
  245.         $this->distributorCh $distributorCh;
  246.         return $this;
  247.     }
  248.     /**
  249.      * Get distributorCh
  250.      *
  251.      * @return boolean
  252.      */
  253.     public function getDistributorCh()
  254.     {
  255.         return $this->distributorCh;
  256.     }
  257.     
  258.     /**
  259.      * Set dateAskAccess
  260.      *
  261.      * @param \DateTime $dateAskAccess
  262.      *
  263.      * @return League
  264.      */
  265.     public function setDateAskAccess($dateAskAccess)
  266.     {
  267.         $this->dateAskAccess $dateAskAccess;
  268.         return $this;
  269.     }
  270.     /**
  271.      * Get dateAskAccess
  272.      *
  273.      * @return \DateTime
  274.      */
  275.     public function getDateAskAccess()
  276.     {
  277.         return $this->dateAskAccess;
  278.     }
  279.     
  280.     /**
  281.      * Set dateAskAccessGranted
  282.      *
  283.      * @param \DateTime $dateAskAccessGranted
  284.      *
  285.      * @return League
  286.      */
  287.     public function setDateAskAccessGranted($dateAskAccessGranted)
  288.     {
  289.         $this->dateAskAccessGranted $dateAskAccessGranted;
  290.         return $this;
  291.     }
  292.     /**
  293.      * Get dateAskAccessGranted
  294.      *
  295.      * @return \DateTime
  296.      */
  297.     public function getDateAskAccessGranted()
  298.     {
  299.         return $this->dateAskAccessGranted;
  300.     }
  301.     
  302.     
  303. }