src/Entity/Timezone.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use App\Entity\NotificationInLicensorBell;
  6. /**
  7.  * Timezone
  8.  * @ORM\Table(name="timezone")
  9.  * @ORM\Entity(repositoryClass="App\Repository\TimezoneRepository")
  10.  */
  11. class Timezone {
  12.     /**
  13.      * @var integer
  14.      * @ORM\Column(name="tm_id", type="integer")
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue(strategy="IDENTITY")
  17.     */
  18.     private $id;
  19.     /**
  20.      * @var \App\Entity\State
  21.      * @ORM\ManyToOne(targetEntity="App\Entity\State")
  22.      * @ORM\JoinColumns({
  23.      *   @ORM\JoinColumn(name="tm_state", referencedColumnName="st_id", nullable=true)
  24.      * })
  25.     */
  26.     private $state;
  27.     /**
  28.      * @var \App\Entity\Country
  29.      * @ORM\ManyToOne(targetEntity="App\Entity\Country")
  30.      * @ORM\JoinColumns({
  31.      *   @ORM\JoinColumn(name="tm_country", referencedColumnName="co_id")
  32.      * })
  33.     */
  34.     private $country;
  35.     /**
  36.      * Hora media de Greenwich
  37.      * @var string
  38.      * @ORM\Column(name="tm_gmt", type="string", length=10, nullable=false)
  39.      */
  40.     private $gmt;
  41.     /**
  42.      * @var string
  43.      * @ORM\Column(name="tm_name", type="string", nullable=false)
  44.     */
  45.     private $name;
  46.     /**
  47.      * Timezone abbreviation
  48.      * @var string
  49.      * @ORM\Column(name="tm_name_abb", type="string", nullable=false)
  50.     */
  51.     
  52.     private $nameAbb;
  53.     /**
  54.      * Timezone location
  55.      * @var string
  56.      * @ORM\Column(name="tm_location", type="string", nullable=false)
  57.     */
  58.     private $location;
  59.     /**
  60.      * Timezone DST (Daylight saving time)
  61.      * @var boolean
  62.      * @ORM\Column(name="tm_is_dst", type="boolean", nullable=false, options={"default":"0"})
  63.     */
  64.     private $isDst;
  65.     /**
  66.      * Timezone latitude
  67.      * @var string
  68.      * @ORM\Column(name="tm_latitude", type="decimal", precision=16, scale=10, nullable=false)
  69.     */
  70.     private $latitude;
  71.     /**
  72.      * Timezone longitude
  73.      * @var string
  74.      * @ORM\Column(name="tm_longitude", type="decimal", precision=16, scale=10, nullable=false)
  75.     */
  76.     private $longitude;
  77.     /**
  78.      * @var \DateTime
  79.      * @ORM\Column(name="tm_date", type="datetime", nullable=false)
  80.     */
  81.     private $date;
  82.     /**
  83.      * @var \DateTime
  84.      * @ORM\Column(name="tm_date_update", type="datetime", nullable=true)
  85.     */
  86.     private $dateUpdate;
  87.     /**
  88.      * Se ejecuto el comando FixTimezoneInformationCommand
  89.      * @var boolean
  90.      * @ORM\Column(name="tm_is_fix_info", type="boolean", nullable=false, options={"default":"0"})
  91.     */
  92.     private $isFixInfo 0;
  93.     /**
  94.      * fecha de ejecucion comando FixTimezoneInformationCommand
  95.      * @var \DateTime
  96.      * @ORM\Column(name="tm_date_fixed_info", type="datetime", nullable=true)
  97.     */
  98.     private $dateFixedInfo;
  99.     public function getId(){
  100.         return $this->id;
  101.     }
  102.     public function getState()
  103.     {
  104.         return $this->state;
  105.     }
  106.     public function setState($state)
  107.     {
  108.         $this->state $state;
  109.         return $this;
  110.     }
  111.     public function getCountry()
  112.     {
  113.         return $this->country;
  114.     }
  115.     public function setCountry($country)
  116.     {
  117.         $this->country $country;
  118.         return $this;
  119.     }
  120.     public function getGmt()
  121.     {
  122.         return $this->gmt;
  123.     }
  124.     public function setGmt($gmt)
  125.     {
  126.         $this->gmt $gmt;
  127.         return $this;
  128.     }
  129.     public function getName()
  130.     {
  131.         return $this->name;
  132.     }
  133.     public function setName($name)
  134.     {
  135.         $this->name $name;
  136.         return $this;
  137.     }
  138.     public function getNameAbb()
  139.     {
  140.         return $this->nameAbb;
  141.     }
  142.     public function setNameAbb($nameAbb)
  143.     {
  144.         $this->nameAbb $nameAbb;
  145.         return $this;
  146.     }
  147.     public function getLocation()
  148.     {
  149.         return $this->location;
  150.     }
  151.     public function setLocation($location)
  152.     {
  153.         $this->location $location;
  154.         return $this;
  155.     }
  156.     public function getIsDst()
  157.     {
  158.         return $this->isDst;
  159.     }
  160.     public function setIsDst($isDst)
  161.     {
  162.         $this->isDst $isDst;
  163.         return $this;
  164.     }
  165.     public function getLatitude()
  166.     {
  167.         return $this->latitude;
  168.     }
  169.     public function setLatitude($latitude)
  170.     {
  171.         $this->latitude $latitude;
  172.         return $this;
  173.     }
  174.     public function getLongitude()
  175.     {
  176.         return $this->longitude;
  177.     }
  178.     public function setLongitude($longitude)
  179.     {
  180.         $this->longitude $longitude;
  181.         return $this;
  182.     }
  183.     public function getDate()
  184.     {
  185.         return $this->date;
  186.     }
  187.     public function setDate($date)
  188.     {
  189.         $this->date $date;
  190.         return $this;
  191.     }
  192.     public function getDateUpdate()
  193.     {
  194.         return $this->dateUpdate;
  195.     }
  196.     public function setDateUpdate($dateUpdate)
  197.     {
  198.         $this->dateUpdate $dateUpdate;
  199.         return $this;
  200.     }
  201.     public function getIsFixInfo()
  202.     {
  203.         return $this->isFixInfo;
  204.     }
  205.     public function setIsFixInfo($isFixInfo)
  206.     {
  207.         $this->isFixInfo $isFixInfo;
  208.         return $this;
  209.     }
  210.     public function getDateFixedInfo()
  211.     {
  212.         return $this->dateFixedInfo;
  213.     }
  214.     public function setDateFixedInfo($dateFixedInfo)
  215.     {
  216.         $this->dateFixedInfo $dateFixedInfo;
  217.         return $this;
  218.     }
  219. }