<?php
namespace App\Entity\League;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\Common\Collections\ArrayCollection;
/**
* League
*
* @ORM\Table(name="tam_leagues")
* @ORM\Entity(repositoryClass="App\Repository\League\LeagueRepository")
* @ORM\HasLifecycleCallbacks
*/
class League
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @ORM\OneToOne(targetEntity="App\Entity\User", inversedBy="league", cascade={"persist", "remove"})
* @ORM\JoinColumn(name="tam_user", referencedColumnName="id", onDelete="CASCADE", nullable=false)
*/
private $user;
/**
* @var integer
*
* @ORM\Column(name="old_id", type="integer", nullable=true)
*/
private $oldId;
/**
* @var string
*
* @ORM\Column(name="website", type="string", length=255, nullable=true)
*/
private $website;
/**
* @var string
*
* @ORM\Column(name="phone", type="string", length=255, nullable=true)
*/
private $phone;
/**
* @var string
*
* @ORM\Column(name="description", type="text", length=255, nullable=true)
*/
private $description;
/**
* @var boolean
*
* @ORM\Column(name="distributor_gc", type="boolean", options={"default": FALSE})
*/
private $distributorGc;
/**
* @var boolean
*
* @ORM\Column(name="distributor_ch", type="boolean", options={"default": FALSE})
*/
private $distributorCh;
/**
* @var \DateTime
*
* @ORM\Column(name="date_ask_access", type="datetime", nullable=true)
*/
private $dateAskAccess;
/**
* @var \DateTime
*
* @ORM\Column(name="date_ask_access_granted", type="datetime", nullable=true)
*/
private $dateAskAccessGranted;
public function __construct()
{
$this->distributorGc = false;
$this->distributorCh = false;
}
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set User
*
* @param \App\Entity\User $user
*
* @return League
*/
public function setUser(\App\Entity\User $user)
{
$this->user = $user;
return $this;
}
/**
* Get user
*
* @return \App\Entity\User
*/
public function getUser()
{
return $this->user;
}
/**
* Set oldId
*
* @param integer $oldId
*
* @return Club
*/
public function setOldId($oldId)
{
$this->oldId = $oldId;
return $this;
}
/**
* Get oldId
*
* @return integer
*/
public function getOldId()
{
return $this->oldId;
}
/**
* Set website
*
* @param string $website
*
* @return Club
*/
public function setWebsite($website)
{
$this->website = strtolower($website);
return $this;
}
/**
* Get website
*
* @return string
*/
public function getWebsite()
{
return $this->website;
}
/**
* Set phone
*
* @param string $phone
*
* @return League
*/
public function setPhone($phone)
{
$this->phone = $phone;
return $this;
}
/**
* Get phone
*
* @return string
*/
public function getPhone()
{
return $this->phone;
}
/**
* Set description
*
* @param string $description
*
* @return League
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set distributorGc
*
* @param boolean $distributorGc
*
* @return Club
*/
public function setDistributorGc($distributorGc)
{
$this->distributorGc = $distributorGc;
return $this;
}
/**
* Get distributorGc
*
* @return boolean
*/
public function getDistributorGc()
{
return $this->distributorGc;
}
/**
* Set distributorCh
*
* @param boolean $distributorCh
*
* @return Club
*/
public function setDistributorCh($distributorCh)
{
$this->distributorCh = $distributorCh;
return $this;
}
/**
* Get distributorCh
*
* @return boolean
*/
public function getDistributorCh()
{
return $this->distributorCh;
}
/**
* Set dateAskAccess
*
* @param \DateTime $dateAskAccess
*
* @return League
*/
public function setDateAskAccess($dateAskAccess)
{
$this->dateAskAccess = $dateAskAccess;
return $this;
}
/**
* Get dateAskAccess
*
* @return \DateTime
*/
public function getDateAskAccess()
{
return $this->dateAskAccess;
}
/**
* Set dateAskAccessGranted
*
* @param \DateTime $dateAskAccessGranted
*
* @return League
*/
public function setDateAskAccessGranted($dateAskAccessGranted)
{
$this->dateAskAccessGranted = $dateAskAccessGranted;
return $this;
}
/**
* Get dateAskAccessGranted
*
* @return \DateTime
*/
public function getDateAskAccessGranted()
{
return $this->dateAskAccessGranted;
}
}