<?php
// src//App/Entity/Locations.php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use App\Entity\User as User;
/**
* Locations
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="App\Repository\LocationsRepository")
*/
class Locations
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255, nullable=true)
*/
private $name;
public function __toString()
{
return "{$this->getName()}";
}
/**
* @var string
* @Gedmo\Slug(fields={"name"}, updatable=false)
* @ORM\Column(name="slug", type="string", length=255, unique=true)
*/
private $slug;
/**
* @var string
*
* @ORM\Column(name="buildingName", type="string", length=255, nullable=true)
*/
private $buildingName;
/**
* @var string
*
* @ORM\Column(name="streetName", type="string", length=255, nullable=true)
*/
private $streetName;
/**
* @var string
*
* @ORM\Column(name="neighbourhood", type="string", length=255, nullable=true)
*/
private $neighbourhood;
/**
* @var string
*
* @ORM\Column(name="county", type="string", length=255, nullable=true)
*/
private $county;
/**
* @var string
*
* @ORM\Column(name="city", type="string", length=255, nullable=true)
*/
private $city;
/**
* @var string
*
* @ORM\Column(name="country", type="string", length=255, nullable=true)
*/
private $country;
/**
* @var string
*
* @ORM\Column(name="postCode", type="string", length=10, nullable=true)
*/
private $postCode;
/**
* @var string
*
* @ORM\Column(name="phoneNumber", type="string", length=255, nullable=true)
*/
private $phoneNumber;
/**
* @var string
*
* @ORM\Column(name="email", type="string", length=255, nullable=true)
*/
private $email;
/**
* @var string
*
* @ORM\Column(name="faxNumber", type="string", length=255, nullable=true)
*/
private $faxNumber;
/**
* @var integer
*
* @ORM\Column(name="latitude", type="decimal", scale=6, nullable=true)
*/
private $latitude;
/**
* @var integer
*
* @ORM\Column(name="longitude", type="decimal", scale=6, nullable=true)
*/
private $longitude;
/**
* @var integer
*
* @ORM\Column(name="googleMapsZoom", type="integer", nullable=true)
*/
private $googleMapsZoom;
/**
* @var string
*
* @ORM\Column(name="travelAdvice", type="string", nullable=true)
*/
private $travelAdvice;
/**
* @Gedmo\Timestampable(on="create")
* @ORM\Column(type="datetime")
*/
private $created;
/**
* @Gedmo\Timestampable(on="update")
* @ORM\Column(type="datetime")
*/
private $updated;
/**
* @var User $createdBy
*
* @Gedmo\Blameable(on="create")
* @ORM\ManyToOne(targetEntity="User")
* @ORM\JoinColumn(name="created_by", referencedColumnName="id")
*/
private $createdBy;
/**
* @var User $updatedBy
*
* @Gedmo\Blameable(on="update")
* @ORM\ManyToOne(targetEntity="User")
* @ORM\JoinColumn(name="updated_by", referencedColumnName="id")
*/
private $updatedBy;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set buildingName
*
* @param string $buildingName
* @return Locations
*/
public function setBuildingName($buildingName)
{
$this->buildingName = $buildingName;
return $this;
}
/**
* Get buildingName
*
* @return string
*/
public function getBuildingName()
{
return $this->buildingName;
}
/**
* Set streetName
*
* @param string $streetName
* @return Locations
*/
public function setStreetName($streetName)
{
$this->streetName = $streetName;
return $this;
}
/**
* Get streetName
*
* @return string
*/
public function getStreetName()
{
return $this->streetName;
}
/**
* Set neighbourhood
*
* @param string $neighbourhood
* @return Locations
*/
public function setNeighbourhood($neighbourhood)
{
$this->neighbourhood = $neighbourhood;
return $this;
}
/**
* Get neighbourhood
*
* @return string
*/
public function getNeighbourhood()
{
return $this->neighbourhood;
}
/**
* Set county
*
* @param string $county
* @return Locations
*/
public function setCounty($county)
{
$this->county = $county;
return $this;
}
/**
* Get county
*
* @return string
*/
public function getCounty()
{
return $this->county;
}
/**
* Set city
*
* @param string $city
* @return Locations
*/
public function setCity($city)
{
$this->city = $city;
return $this;
}
/**
* Get city
*
* @return string
*/
public function getCity()
{
return $this->city;
}
/**
* Set country
*
* @param string $country
* @return Locations
*/
public function setCountry($country)
{
$this->country = $country;
return $this;
}
/**
* Get country
*
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* Set postCode
*
* @param string $postCode
* @return Locations
*/
public function setPostCode($postCode)
{
$this->postCode = $postCode;
return $this;
}
/**
* Get postCode
*
* @return string
*/
public function getPostCode()
{
return $this->postCode;
}
/**
* Set phoneNumber
*
* @param string $phoneNumber
* @return Locations
*/
public function setPhoneNumber($phoneNumber)
{
$this->phoneNumber = $phoneNumber;
return $this;
}
/**
* Get phoneNumber
*
* @return string
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* Set faxNumber
*
* @param string $faxNumber
* @return Locations
*/
public function setFaxNumber($faxNumber)
{
$this->faxNumber = $faxNumber;
return $this;
}
/**
* Get faxNumber
*
* @return string
*/
public function getFaxNumber()
{
return $this->faxNumber;
}
/**
* Set travelAdvice
*
* @param string $travelAdvice
* @return Locations
*/
public function setTravelAdvice($travelAdvice)
{
$this->travelAdvice = $travelAdvice;
return $this;
}
/**
* Get travelAdvice
*
* @return string
*/
public function getTravelAdvice()
{
return $this->travelAdvice;
}
/**
* Set latitude
*
* @param integer $latitude
* @return Locations
*/
public function setLatitude($latitude)
{
$this->latitude = $latitude;
return $this;
}
/**
* Get latitude
*
* @return integer
*/
public function getLatitude()
{
return $this->latitude;
}
/**
* Set longitude
*
* @param integer $longitude
* @return Locations
*/
public function setLongitude($longitude)
{
$this->longitude = $longitude;
return $this;
}
/**
* Get longitude
*
* @return integer
*/
public function getLongitude()
{
return $this->longitude;
}
/**
* Set googleMapsZoom
*
* @param integer $googleMapsZoom
* @return Locations
*/
public function setGoogleMapsZoom($googleMapsZoom)
{
$this->googleMapsZoom = $googleMapsZoom;
return $this;
}
/**
* Get googleMapsZoom
*
* @return integer
*/
public function getGoogleMapsZoom()
{
return $this->googleMapsZoom;
}
public function setSlug($slug)
{
$this->slug = $slug;
}
/**
* Get slug
*
* @return string
*/
public function getSlug()
{
return $this->slug;
}
/**
* Set name
*
* @param string $name
* @return Locations
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set created
*
* @param \DateTime $created
* @return Locations
*/
public function setCreated($created)
{
$this->created = $created;
return $this;
}
/**
* Get created
*
* @return \DateTime
*/
public function getCreated()
{
return $this->created;
}
/**
* Set updated
*
* @param \DateTime $updated
* @return Locations
*/
public function setUpdated($updated)
{
$this->updated = $updated;
return $this;
}
/**
* Get updated
*
* @return \DateTime
*/
public function getUpdated()
{
return $this->updated;
}
/**
* Get createdBy
*
* @return \App\Entity\User
*/
public function getCreatedBy()
{
return $this->createdBy;
}
/**
* Get updatedBy
*
* @return \App\Entity\User
*/
public function getUpdatedBy()
{
return $this->updatedBy;
}
/**
* Set createdBy
*
* @param \App\Entity\User $createdBy
*
* @return Locations
*/
public function setCreatedBy(\App\Entity\User $createdBy = null)
{
$this->createdBy = $createdBy;
return $this;
}
/**
* Set updatedBy
*
* @param \App\Entity\User $updatedBy
*
* @return Locations
*/
public function setUpdatedBy(\App\Entity\User $updatedBy = null)
{
$this->updatedBy = $updatedBy;
return $this;
}
/**
* Set email
*
* @param string $email
* @return Locations
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
}