src/OfficeBrain/Bundle/CoreBundle/Entity/City.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\CoreBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6.  * Entity For City
  7.  * @author OfficeBrain 4493
  8.  */
  9. /**
  10.  * City
  11.  *
  12.  * @ORM\Table(name="tbl_city")
  13.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\CoreBundle\Entity\CityRepository")
  14.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false)
  15.  */
  16. class City
  17. {
  18.     /**
  19.      * @var integer
  20.      *
  21.      * @ORM\Column(name="id", type="bigint",length=20, options={"unsigned"=true})
  22.      * @ORM\Id
  23.      * @ORM\GeneratedValue(strategy="AUTO")
  24.      */
  25.     private $id;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="country_code", type="string", length=100, options={"collate"="utf8_unicode_ci"})
  30.      */
  31.     private $countryCode;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="city_name", type="string", length=255, options={"collate"="utf8_unicode_ci"})
  36.      */
  37.     private $cityName;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="postal_code", type="string", length=100, options={"collate"="utf8_unicode_ci"})
  42.      */
  43.     private $postalCode;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="admin_name1", type="string", length=100, options={"collate"="utf8_unicode_ci"})
  48.      */
  49.     private $adminName1;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="admin_code1", type="string", length=100, options={"collate"="utf8_unicode_ci"})
  54.      */
  55.     private $adminCode1;
  56.     /**
  57.      * @var string
  58.      *
  59.      * @ORM\Column(name="admin_name2", type="string", length=100, options={"collate"="utf8_unicode_ci"})
  60.      */
  61.     private $adminName2;
  62.     /**
  63.      * @var string
  64.      *
  65.      * @ORM\Column(name="admin_code2", type="string", length=100, options={"collate"="utf8_unicode_ci"})
  66.      */
  67.     private $adminCode2;
  68.     /**
  69.      * @var string
  70.      *
  71.      * @ORM\Column(name="admin_name3", type="string", length=100, options={"collate"="utf8_unicode_ci"})
  72.      */
  73.     private $adminName3;
  74.     /**
  75.      * @var string
  76.      *
  77.      * @ORM\Column(name="admin_code3", type="string", length=100, options={"collate"="utf8_unicode_ci"})
  78.      */
  79.     private $adminCode3;
  80.     /**
  81.      * @var string
  82.      *
  83.      * @ORM\Column(name="latitude", type="string", length=100, options={"collate"="utf8_unicode_ci"})
  84.      */
  85.     private $latitude;
  86.     /**
  87.      * @var string
  88.      *
  89.      * @ORM\Column(name="longitude", type="string", length=100, options={"collate"="utf8_unicode_ci"})
  90.      */
  91.     private $longitude;
  92.     /**
  93.      * @var string
  94.      *
  95.      * @ORM\Column(name="accuracy", type="string", length=100, options={"collate"="utf8_unicode_ci"})
  96.      */
  97.     private $accuracy;
  98.     /**
  99.      * @var datetime
  100.      *
  101.      * @Gedmo\Timestampable(on="create")
  102.      * @ORM\Column(name="created_at",type="datetime")
  103.      */
  104.     protected $createdAt;
  105.     
  106.     /**
  107.      * @var datetime
  108.      *
  109.      * @Gedmo\Timestampable(on="update")
  110.      * @ORM\Column( name="updated_at", type="datetime",nullable=true)
  111.      */
  112.     protected $updatedAt;
  113.     
  114.     
  115.     /**
  116.      * @var datetime
  117.      *
  118.      * @ORM\Column(name="deleted_at",type="datetime",  nullable=true)
  119.      */
  120.     protected $deletedAt;
  121.     
  122.     /**
  123.      * @var integer
  124.      * @ORM\Column(name="created_uid", type="bigint" ,length=20 ,options={"unsigned"=true})
  125.      */
  126.     private $createdUid;
  127.     
  128.     /**
  129.      * @var integer
  130.      * @ORM\Column(name="updated_uid", type="bigint" ,length=20 ,options={"unsigned"=true})
  131.      */
  132.     private $updatedUid;
  133.     
  134.     /**
  135.      * @var integer
  136.      * @ORM\Column(name="deleted_uid", type="bigint" ,length=20 ,options={"unsigned"=true})
  137.      */
  138.     private $deletedUid;
  139.     
  140.     
  141.     
  142.     /**
  143.      * Get id
  144.      *
  145.      * @return integer
  146.      */
  147.     public function getId()
  148.     {
  149.         return $this->id;
  150.     }
  151.     /**
  152.      * Set countryCode
  153.      *
  154.      * @param string $countryCode
  155.      * @return City
  156.      */
  157.     public function setCountryCode($countryCode)
  158.     {
  159.         $this->countryCode $countryCode;
  160.         return $this;
  161.     }
  162.     /**
  163.      * Get countryCode
  164.      *
  165.      * @return string
  166.      */
  167.     public function getCountryCode()
  168.     {
  169.         return $this->countryCode;
  170.     }
  171.     /**
  172.      * Set cityName
  173.      *
  174.      * @param string $cityName
  175.      * @return City
  176.      */
  177.     public function setCityName($cityName)
  178.     {
  179.         $this->cityName $cityName;
  180.         return $this;
  181.     }
  182.     /**
  183.      * Get cityName
  184.      *
  185.      * @return string
  186.      */
  187.     public function getCityName()
  188.     {
  189.         return $this->cityName;
  190.     }
  191.     /**
  192.      * Set postalCode
  193.      *
  194.      * @param string $postalCode
  195.      * @return City
  196.      */
  197.     public function setPostalCode($postalCode)
  198.     {
  199.         $this->postalCode $postalCode;
  200.         return $this;
  201.     }
  202.     /**
  203.      * Get postalCode
  204.      *
  205.      * @return string
  206.      */
  207.     public function getPostalCode()
  208.     {
  209.         return $this->postalCode;
  210.     }
  211.     /**
  212.      * Set adminName1
  213.      *
  214.      * @param string $adminName1
  215.      * @return City
  216.      */
  217.     public function setAdminName1($adminName1)
  218.     {
  219.         $this->adminName1 $adminName1;
  220.         return $this;
  221.     }
  222.     /**
  223.      * Get adminName1
  224.      *
  225.      * @return string
  226.      */
  227.     public function getAdminName1()
  228.     {
  229.         return $this->adminName1;
  230.     }
  231.     /**
  232.      * Set adminCode1
  233.      *
  234.      * @param string $adminCode1
  235.      * @return City
  236.      */
  237.     public function setAdminCode1($adminCode1)
  238.     {
  239.         $this->adminCode1 $adminCode1;
  240.         return $this;
  241.     }
  242.     /**
  243.      * Get adminCode1
  244.      *
  245.      * @return string
  246.      */
  247.     public function getAdminCode1()
  248.     {
  249.         return $this->adminCode1;
  250.     }
  251.     /**
  252.      * Set adminName2
  253.      *
  254.      * @param string $adminName2
  255.      * @return City
  256.      */
  257.     public function setAdminName2($adminName2)
  258.     {
  259.         $this->adminName2 $adminName2;
  260.         return $this;
  261.     }
  262.     /**
  263.      * Get adminName2
  264.      *
  265.      * @return string
  266.      */
  267.     public function getAdminName2()
  268.     {
  269.         return $this->adminName2;
  270.     }
  271.     /**
  272.      * Set adminCode2
  273.      *
  274.      * @param string $adminCode2
  275.      * @return City
  276.      */
  277.     public function setAdminCode2($adminCode2)
  278.     {
  279.         $this->adminCode2 $adminCode2;
  280.         return $this;
  281.     }
  282.     /**
  283.      * Get adminCode2
  284.      *
  285.      * @return string
  286.      */
  287.     public function getAdminCode2()
  288.     {
  289.         return $this->adminCode2;
  290.     }
  291.     /**
  292.      * Set adminName3
  293.      *
  294.      * @param string $adminName3
  295.      * @return City
  296.      */
  297.     public function setAdminName3($adminName3)
  298.     {
  299.         $this->adminName3 $adminName3;
  300.         return $this;
  301.     }
  302.     /**
  303.      * Get adminName3
  304.      *
  305.      * @return string
  306.      */
  307.     public function getAdminName3()
  308.     {
  309.         return $this->adminName3;
  310.     }
  311.     /**
  312.      * Set adminCode3
  313.      *
  314.      * @param string $adminCode3
  315.      * @return City
  316.      */
  317.     public function setAdminCode3($adminCode3)
  318.     {
  319.         $this->adminCode3 $adminCode3;
  320.         return $this;
  321.     }
  322.     /**
  323.      * Get adminCode3
  324.      *
  325.      * @return string
  326.      */
  327.     public function getAdminCode3()
  328.     {
  329.         return $this->adminCode3;
  330.     }
  331.     /**
  332.      * Set latitude
  333.      *
  334.      * @param string $latitude
  335.      * @return City
  336.      */
  337.     public function setLatitude($latitude)
  338.     {
  339.         $this->latitude $latitude;
  340.         return $this;
  341.     }
  342.     /**
  343.      * Get latitude
  344.      *
  345.      * @return string
  346.      */
  347.     public function getLatitude()
  348.     {
  349.         return $this->latitude;
  350.     }
  351.     /**
  352.      * Set longitude
  353.      *
  354.      * @param string $longitude
  355.      * @return City
  356.      */
  357.     public function setLongitude($longitude)
  358.     {
  359.         $this->longitude $longitude;
  360.         return $this;
  361.     }
  362.     /**
  363.      * Get longitude
  364.      *
  365.      * @return string
  366.      */
  367.     public function getLongitude()
  368.     {
  369.         return $this->longitude;
  370.     }
  371.     /**
  372.      * Set accuracy
  373.      *
  374.      * @param string $accuracy
  375.      * @return City
  376.      */
  377.     public function setAccuracy($accuracy)
  378.     {
  379.         $this->accuracy $accuracy;
  380.         return $this;
  381.     }
  382.     /**
  383.      * Get accuracy
  384.      *
  385.      * @return string
  386.      */
  387.     public function getAccuracy()
  388.     {
  389.         return $this->accuracy;
  390.     }
  391.     /**
  392.      * Set createdAt
  393.      *
  394.      * @param \DateTime $createdAt
  395.      * @return City
  396.      */
  397.     public function setCreatedAt($createdAt)
  398.     {
  399.         $this->createdAt $createdAt;
  400.         return $this;
  401.     }
  402.     /**
  403.      * Get createdAt
  404.      *
  405.      * @return \DateTime
  406.      */
  407.     public function getCreatedAt()
  408.     {
  409.         return $this->createdAt;
  410.     }
  411.     /**
  412.      * Set updatedAt
  413.      *
  414.      * @param \DateTime $updatedAt
  415.      * @return City
  416.      */
  417.     public function setUpdatedAt($updatedAt)
  418.     {
  419.         $this->updatedAt $updatedAt;
  420.         return $this;
  421.     }
  422.     /**
  423.      * Get updatedAt
  424.      *
  425.      * @return \DateTime
  426.      */
  427.     public function getUpdatedAt()
  428.     {
  429.         return $this->updatedAt;
  430.     }
  431.     /**
  432.      * Set deletedAt
  433.      *
  434.      * @param \DateTime $deletedAt
  435.      * @return City
  436.      */
  437.     public function setDeletedAt($deletedAt)
  438.     {
  439.         $this->deletedAt $deletedAt;
  440.         return $this;
  441.     }
  442.     /**
  443.      * Get deletedAt
  444.      *
  445.      * @return \DateTime
  446.      */
  447.     public function getDeletedAt()
  448.     {
  449.         return $this->deletedAt;
  450.     }
  451.     /**
  452.      * Set createdUid
  453.      *
  454.      * @param integer $createdUid
  455.      * @return City
  456.      */
  457.     public function setCreatedUid($createdUid)
  458.     {
  459.         $this->createdUid $createdUid;
  460.         return $this;
  461.     }
  462.     /**
  463.      * Get createdUid
  464.      *
  465.      * @return integer
  466.      */
  467.     public function getCreatedUid()
  468.     {
  469.         return $this->createdUid;
  470.     }
  471.     /**
  472.      * Set updatedUid
  473.      *
  474.      * @param integer $updatedUid
  475.      * @return City
  476.      */
  477.     public function setUpdatedUid($updatedUid)
  478.     {
  479.         $this->updatedUid $updatedUid;
  480.         return $this;
  481.     }
  482.     /**
  483.      * Get updatedUid
  484.      *
  485.      * @return integer
  486.      */
  487.     public function getUpdatedUid()
  488.     {
  489.         return $this->updatedUid;
  490.     }
  491.     /**
  492.      * Set deletedUid
  493.      *
  494.      * @param integer $deletedUid
  495.      * @return City
  496.      */
  497.     public function setDeletedUid($deletedUid)
  498.     {
  499.         $this->deletedUid $deletedUid;
  500.         return $this;
  501.     }
  502.     /**
  503.      * Get deletedUid
  504.      *
  505.      * @return integer
  506.      */
  507.     public function getDeletedUid()
  508.     {
  509.         return $this->deletedUid;
  510.     }
  511. }