src/Entity/Locations.php line 15

Open in your IDE?
  1. <?php
  2. // src//App/Entity/Locations.php
  3. namespace App\Entity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use App\Entity\User as User;
  7. /**
  8.  * Locations
  9.  *
  10.  * @ORM\Table()
  11.  * @ORM\Entity(repositoryClass="App\Repository\LocationsRepository")
  12.  */
  13. class Locations
  14. {
  15.     /**
  16.      * @var integer
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var string
  25.      *
  26.      * @ORM\Column(name="name", type="string", length=255, nullable=true)
  27.      */
  28.     private $name;
  29.     public function __toString()
  30.         {
  31.                 return "{$this->getName()}";
  32.         }
  33.     /**
  34.      * @var string
  35.      * @Gedmo\Slug(fields={"name"}, updatable=false)
  36.      * @ORM\Column(name="slug", type="string", length=255, unique=true)
  37.      */
  38.     private $slug;
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="buildingName", type="string", length=255, nullable=true)
  43.      */
  44.     private $buildingName;
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(name="streetName", type="string", length=255, nullable=true)
  49.      */
  50.     private $streetName;
  51.     /**
  52.      * @var string
  53.      *
  54.      * @ORM\Column(name="neighbourhood", type="string", length=255, nullable=true)
  55.      */
  56.     private $neighbourhood;
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="county", type="string", length=255, nullable=true)
  61.      */
  62.     private $county;
  63.     /**
  64.      * @var string
  65.      *
  66.      * @ORM\Column(name="city", type="string", length=255, nullable=true)
  67.      */
  68.     private $city;
  69.     /**
  70.      * @var string
  71.      *
  72.      * @ORM\Column(name="country", type="string", length=255, nullable=true)
  73.      */
  74.     private $country;
  75.     /**
  76.      * @var string
  77.      *
  78.      * @ORM\Column(name="postCode", type="string", length=10, nullable=true)
  79.      */
  80.     private $postCode;
  81.     /**
  82.      * @var string
  83.      *
  84.      * @ORM\Column(name="phoneNumber", type="string", length=255, nullable=true)
  85.      */
  86.     private $phoneNumber;
  87.     /**
  88.      * @var string
  89.      *
  90.      * @ORM\Column(name="email", type="string", length=255, nullable=true)
  91.      */
  92.     private $email;
  93.     /**
  94.      * @var string
  95.      *
  96.      * @ORM\Column(name="faxNumber", type="string", length=255, nullable=true)
  97.      */
  98.     private $faxNumber;
  99.     /**
  100.      * @var integer
  101.      *
  102.      * @ORM\Column(name="latitude", type="decimal", scale=6, nullable=true)
  103.      */
  104.     private $latitude;
  105.     /**
  106.      * @var integer
  107.      *
  108.      * @ORM\Column(name="longitude", type="decimal", scale=6, nullable=true)
  109.      */
  110.     private $longitude;
  111.     /**
  112.      * @var integer
  113.      *
  114.      * @ORM\Column(name="googleMapsZoom", type="integer", nullable=true)
  115.      */
  116.     private $googleMapsZoom;
  117.     /**
  118.      * @var string
  119.      *
  120.      * @ORM\Column(name="travelAdvice", type="string", nullable=true)
  121.      */
  122.     private $travelAdvice;
  123.     /**
  124.      * @Gedmo\Timestampable(on="create")
  125.      * @ORM\Column(type="datetime")
  126.      */
  127.     private $created;
  128.     /**
  129.      * @Gedmo\Timestampable(on="update")
  130.      * @ORM\Column(type="datetime")
  131.      */
  132.     private $updated;
  133.     /**
  134.      * @var User $createdBy
  135.      *
  136.      * @Gedmo\Blameable(on="create")
  137.      * @ORM\ManyToOne(targetEntity="User")
  138.      * @ORM\JoinColumn(name="created_by", referencedColumnName="id")
  139.      */
  140.     private $createdBy;
  141.     /**
  142.      * @var User $updatedBy
  143.      *
  144.      * @Gedmo\Blameable(on="update")
  145.      * @ORM\ManyToOne(targetEntity="User")
  146.      * @ORM\JoinColumn(name="updated_by", referencedColumnName="id")
  147.      */
  148.     private $updatedBy;
  149.     /**
  150.      * Get id
  151.      *
  152.      * @return integer
  153.      */
  154.     public function getId()
  155.     {
  156.         return $this->id;
  157.     }
  158.     /**
  159.      * Set buildingName
  160.      *
  161.      * @param string $buildingName
  162.      * @return Locations
  163.      */
  164.     public function setBuildingName($buildingName)
  165.     {
  166.         $this->buildingName $buildingName;
  167.         return $this;
  168.     }
  169.     /**
  170.      * Get buildingName
  171.      *
  172.      * @return string
  173.      */
  174.     public function getBuildingName()
  175.     {
  176.         return $this->buildingName;
  177.     }
  178.     /**
  179.      * Set streetName
  180.      *
  181.      * @param string $streetName
  182.      * @return Locations
  183.      */
  184.     public function setStreetName($streetName)
  185.     {
  186.         $this->streetName $streetName;
  187.         return $this;
  188.     }
  189.     /**
  190.      * Get streetName
  191.      *
  192.      * @return string
  193.      */
  194.     public function getStreetName()
  195.     {
  196.         return $this->streetName;
  197.     }
  198.     /**
  199.      * Set neighbourhood
  200.      *
  201.      * @param string $neighbourhood
  202.      * @return Locations
  203.      */
  204.     public function setNeighbourhood($neighbourhood)
  205.     {
  206.         $this->neighbourhood $neighbourhood;
  207.         return $this;
  208.     }
  209.     /**
  210.      * Get neighbourhood
  211.      *
  212.      * @return string
  213.      */
  214.     public function getNeighbourhood()
  215.     {
  216.         return $this->neighbourhood;
  217.     }
  218.     /**
  219.      * Set county
  220.      *
  221.      * @param string $county
  222.      * @return Locations
  223.      */
  224.     public function setCounty($county)
  225.     {
  226.         $this->county $county;
  227.         return $this;
  228.     }
  229.     /**
  230.      * Get county
  231.      *
  232.      * @return string
  233.      */
  234.     public function getCounty()
  235.     {
  236.         return $this->county;
  237.     }
  238.     /**
  239.      * Set city
  240.      *
  241.      * @param string $city
  242.      * @return Locations
  243.      */
  244.     public function setCity($city)
  245.     {
  246.         $this->city $city;
  247.         return $this;
  248.     }
  249.     /**
  250.      * Get city
  251.      *
  252.      * @return string
  253.      */
  254.     public function getCity()
  255.     {
  256.         return $this->city;
  257.     }
  258.     /**
  259.      * Set country
  260.      *
  261.      * @param string $country
  262.      * @return Locations
  263.      */
  264.     public function setCountry($country)
  265.     {
  266.         $this->country $country;
  267.         return $this;
  268.     }
  269.     /**
  270.      * Get country
  271.      *
  272.      * @return string
  273.      */
  274.     public function getCountry()
  275.     {
  276.         return $this->country;
  277.     }
  278.     /**
  279.      * Set postCode
  280.      *
  281.      * @param string $postCode
  282.      * @return Locations
  283.      */
  284.     public function setPostCode($postCode)
  285.     {
  286.         $this->postCode $postCode;
  287.         return $this;
  288.     }
  289.     /**
  290.      * Get postCode
  291.      *
  292.      * @return string
  293.      */
  294.     public function getPostCode()
  295.     {
  296.         return $this->postCode;
  297.     }
  298.     /**
  299.      * Set phoneNumber
  300.      *
  301.      * @param string $phoneNumber
  302.      * @return Locations
  303.      */
  304.     public function setPhoneNumber($phoneNumber)
  305.     {
  306.         $this->phoneNumber $phoneNumber;
  307.         return $this;
  308.     }
  309.     /**
  310.      * Get phoneNumber
  311.      *
  312.      * @return string
  313.      */
  314.     public function getPhoneNumber()
  315.     {
  316.         return $this->phoneNumber;
  317.     }
  318.     /**
  319.      * Set faxNumber
  320.      *
  321.      * @param string $faxNumber
  322.      * @return Locations
  323.      */
  324.     public function setFaxNumber($faxNumber)
  325.     {
  326.         $this->faxNumber $faxNumber;
  327.         return $this;
  328.     }
  329.     /**
  330.      * Get faxNumber
  331.      *
  332.      * @return string
  333.      */
  334.     public function getFaxNumber()
  335.     {
  336.         return $this->faxNumber;
  337.     }
  338.     /**
  339.      * Set travelAdvice
  340.      *
  341.      * @param string $travelAdvice
  342.      * @return Locations
  343.      */
  344.     public function setTravelAdvice($travelAdvice)
  345.     {
  346.         $this->travelAdvice $travelAdvice;
  347.         return $this;
  348.     }
  349.     /**
  350.      * Get travelAdvice
  351.      *
  352.      * @return string
  353.      */
  354.     public function getTravelAdvice()
  355.     {
  356.         return $this->travelAdvice;
  357.     }
  358.     /**
  359.      * Set latitude
  360.      *
  361.      * @param integer $latitude
  362.      * @return Locations
  363.      */
  364.     public function setLatitude($latitude)
  365.     {
  366.         $this->latitude $latitude;
  367.         return $this;
  368.     }
  369.     /**
  370.      * Get latitude
  371.      *
  372.      * @return integer
  373.      */
  374.     public function getLatitude()
  375.     {
  376.         return $this->latitude;
  377.     }
  378.     /**
  379.      * Set longitude
  380.      *
  381.      * @param integer $longitude
  382.      * @return Locations
  383.      */
  384.     public function setLongitude($longitude)
  385.     {
  386.         $this->longitude $longitude;
  387.         return $this;
  388.     }
  389.     /**
  390.      * Get longitude
  391.      *
  392.      * @return integer
  393.      */
  394.     public function getLongitude()
  395.     {
  396.         return $this->longitude;
  397.     }
  398.     /**
  399.      * Set googleMapsZoom
  400.      *
  401.      * @param integer $googleMapsZoom
  402.      * @return Locations
  403.      */
  404.     public function setGoogleMapsZoom($googleMapsZoom)
  405.     {
  406.         $this->googleMapsZoom $googleMapsZoom;
  407.         return $this;
  408.     }
  409.     /**
  410.      * Get googleMapsZoom
  411.      *
  412.      * @return integer
  413.      */
  414.     public function getGoogleMapsZoom()
  415.     {
  416.         return $this->googleMapsZoom;
  417.     }
  418.     public function setSlug($slug)
  419.     {
  420.         $this->slug $slug;
  421.     }
  422.     /**
  423.      * Get slug
  424.      *
  425.      * @return string
  426.      */
  427.     public function getSlug()
  428.     {
  429.         return $this->slug;
  430.     }
  431.     /**
  432.      * Set name
  433.      *
  434.      * @param string $name
  435.      * @return Locations
  436.      */
  437.     public function setName($name)
  438.     {
  439.         $this->name $name;
  440.         return $this;
  441.     }
  442.     /**
  443.      * Get name
  444.      *
  445.      * @return string
  446.      */
  447.     public function getName()
  448.     {
  449.         return $this->name;
  450.     }
  451.     /**
  452.      * Set created
  453.      *
  454.      * @param \DateTime $created
  455.      * @return Locations
  456.      */
  457.     public function setCreated($created)
  458.     {
  459.         $this->created $created;
  460.         return $this;
  461.     }
  462.     /**
  463.      * Get created
  464.      *
  465.      * @return \DateTime
  466.      */
  467.     public function getCreated()
  468.     {
  469.         return $this->created;
  470.     }
  471.     /**
  472.      * Set updated
  473.      *
  474.      * @param \DateTime $updated
  475.      * @return Locations
  476.      */
  477.     public function setUpdated($updated)
  478.     {
  479.         $this->updated $updated;
  480.         return $this;
  481.     }
  482.     /**
  483.      * Get updated
  484.      *
  485.      * @return \DateTime
  486.      */
  487.     public function getUpdated()
  488.     {
  489.         return $this->updated;
  490.     }
  491.     /**
  492.      * Get createdBy
  493.      *
  494.      * @return \App\Entity\User
  495.      */
  496.     public function getCreatedBy()
  497.     {
  498.         return $this->createdBy;
  499.     }
  500.     /**
  501.      * Get updatedBy
  502.      *
  503.      * @return \App\Entity\User
  504.      */
  505.     public function getUpdatedBy()
  506.     {
  507.         return $this->updatedBy;
  508.     }
  509.     /**
  510.      * Set createdBy
  511.      *
  512.      * @param \App\Entity\User $createdBy
  513.      *
  514.      * @return Locations
  515.      */
  516.     public function setCreatedBy(\App\Entity\User $createdBy null)
  517.     {
  518.         $this->createdBy $createdBy;
  519.         return $this;
  520.     }
  521.     /**
  522.      * Set updatedBy
  523.      *
  524.      * @param \App\Entity\User $updatedBy
  525.      *
  526.      * @return Locations
  527.      */
  528.     public function setUpdatedBy(\App\Entity\User $updatedBy null)
  529.     {
  530.         $this->updatedBy $updatedBy;
  531.         return $this;
  532.     }
  533.     /**
  534.      * Set email
  535.      *
  536.      * @param string $email
  537.      * @return Locations
  538.      */
  539.     public function setEmail($email)
  540.     {
  541.         $this->email $email;
  542.         return $this;
  543.     }
  544.     /**
  545.      * Get email
  546.      *
  547.      * @return string
  548.      */
  549.     public function getEmail()
  550.     {
  551.         return $this->email;
  552.     }
  553. }