vendor/webbamboo/spinners-common/src/Entity/City.php line 13
<?phpnamespace Webbamboo\SpinnersCommon\Entity;use Doctrine\ORM\Mapping as ORM;/*** City** @ORM\Table("City")* @ORM\Entity*/class City{/*** @var integer** @ORM\Column(name="id", type="integer")* @ORM\Id* @ORM\GeneratedValue(strategy="AUTO")*/private $id;/*** @var integer** @ORM\Column(name="geonameid", type="integer")*/private $geonameid;/*** @var string** @ORM\Column(name="name", type="string", length=100)*/private $name;/*** @var string** @ORM\Column(name="latitude", type="decimal", scale=5)*/private $latitude;/*** @var string** @ORM\Column(name="longitude", type="decimal", scale=5)*/private $longitude;/*** @var string** @ORM\Column(name="featureclass", type="string", length=2)*/private $featureclass;/*** @var string** @ORM\Column(name="featurecode", type="string", length=10)*/private $featurecode;/*** @var integer** @ORM\Column(name="link", type="integer")*/private $link;/*** @ORM\ManyToOne(targetEntity="Counties", inversedBy="cities")* @ORM\JoinColumn(referencedColumnName="id")*/private $county;/*** @var string** @ORM\Column(name="permalink", type="string", length=100)*/private $permalink;/*** @ORM\OneToMany(targetEntity="Company", mappedBy="cityobj")*/private $companies;/*** @ORM\ManyToOne(targetEntity="Metatitlecity", inversedBy="cities")* @ORM\JoinColumn(referencedColumnName="id")*/private $metatitle;/*** @var string** @ORM\Column(name="manualmetatitle", type="string", length=255, nullable=true)*/private $manualMetatitle;/*** @ORM\ManyToOne(targetEntity="Metadescriptioncity", inversedBy="cities")* @ORM\JoinColumn(referencedColumnName="id")*/private $metadescription;/*** @var string** @ORM\Column(name="manualmetadescription", type="string", length=255, nullable=true)*/private $manualMetadescription;/*** @ORM\ManyToOne(targetEntity="H1city", inversedBy="cities")* @ORM\JoinColumn(referencedColumnName="id")*/private $h1;/*** @var text** @ORM\Column(name="manualh1", type="text", nullable=true)*/private $manualH1;/*** @ORM\ManyToOne(targetEntity="Contentpartonecity", inversedBy="cities")* @ORM\JoinColumn(referencedColumnName="id")*/private $contentone;/*** @var text** @ORM\Column(name="manualcontentone", type="text", nullable=true)*/private $manualContentone;/*** @ORM\ManyToOne(targetEntity="Contentparttwocity", inversedBy="cities")* @ORM\JoinColumn(referencedColumnName="id")*/private $contenttwo;/*** @var text** @ORM\Column(name="manualcontenttwo", type="text", nullable=true)*/private $manualContenttwo;/*** @ORM\ManyToOne(targetEntity="Contentpartthreecity", inversedBy="cities")* @ORM\JoinColumn(referencedColumnName="id")*/private $contentthree;/*** @var text** @ORM\Column(name="manualcontentthree", type="text", nullable=true)*/private $manualContentthree;/*** @ORM\ManyToOne(targetEntity="Citythumbnail", inversedBy="cities")* @ORM\JoinColumn(referencedColumnName="id")*/private $thumbnail;/*** @var string** @ORM\Column(name="manualthumbnail", type="string", length=255, nullable=true)*/private $manualThumbnail;/*** @var string** @ORM\Column(name="manualthumbnailname", type="string", length=255, nullable=true)*/private $manualThumbnailname;/*** @var string** @ORM\Column(name="manualthumbnailalt", type="string", length=255, nullable=true)*/private $manualThumbnailalt;/*** @var string** @ORM\Column(name="manual", type="boolean", nullable=true)*/private $manual;/*** @var integer** @ORM\Column(name="population", type="integer")*/private $population;/*** @ORM\ManyToMany(targetEntity="Company", inversedBy="recommended")* @ORM\JoinColumn(name="company_id", referencedColumnName="id")**/private $recommendee;/*** @ORM\ManyToMany(targetEntity="City", mappedBy="recommendeeCity")**/private $recommendedCity;/*** @ORM\ManyToMany(targetEntity="City", inversedBy="recommendedCity")*/private $recommendeeCity;/*** @ORM\ManyToOne(targetEntity="H2Interesting", inversedBy="cities")* @ORM\JoinColumn(referencedColumnName="id")*/private $h2interesting;/*** @ORM\OneToMany(targetEntity="InterestingarticleCity", mappedBy="city", cascade={"persist"})**/private $interestingarticles;public function __toString(){return $this->getName();}/*** Get id** @return integer*/public function getId(){return $this->id;}/*** Set geonameid** @param integer $geonameid* @return City*/public function setGeonameid($geonameid){$this->geonameid = $geonameid;return $this;}/*** Get geonameid** @return integer*/public function getGeonameid(){return $this->geonameid;}/*** Set name** @param string $name* @return City*/public function setName($name){$this->name = $name;return $this;}/*** Get name** @return string*/public function getName(){return $this->name;}/*** Set latitude** @param string $latitude* @return City*/public function setLatitude($latitude){$this->latitude = $latitude;return $this;}/*** Get latitude** @return string*/public function getLatitude(){return $this->latitude;}/*** Set longitude** @param string $longitude* @return City*/public function setLongitude($longitude){$this->longitude = $longitude;return $this;}/*** Get longitude** @return string*/public function getLongitude(){return $this->longitude;}/*** Set featureclass** @param string $featureclass* @return City*/public function setFeatureclass($featureclass){$this->featureclass = $featureclass;return $this;}/*** Get featureclass** @return string*/public function getFeatureclass(){return $this->featureclass;}/*** Set featurecode** @param string $featurecode* @return City*/public function setFeaturecode($featurecode){$this->featurecode = $featurecode;return $this;}/*** Get featurecode** @return string*/public function getFeaturecode(){return $this->featurecode;}/*** Set link** @param integer $link* @return City*/public function setLink($link){$this->link = $link;return $this;}/*** Get link** @return integer*/public function getLink(){return $this->link;}/*** Set county** @param \Webbamboo\SpinnersCommon\Entity\Counties $county* @return City*/public function setCounty(\Webbamboo\SpinnersCommon\Entity\Counties $county = null){$this->county = $county;return $this;}/*** Get county** @return \Webbamboo\SpinnersCommon\Entity\Counties*/public function getCounty(){return $this->county;}/*** Set permalink** @param string $permalink* @return City*/public function setPermalink($permalink){$this->permalink = $permalink;return $this;}/*** Get permalink** @return string*/public function getPermalink(){return $this->permalink;}public function getPermalinkP(){$url=array("%C3%85","%C3%A5","%C3%84","%C3%A4","%C3%96","%C3%B6",);$char=array("Å","å","Ä","ä","Ö","ö",);return str_replace($url, $char, $this->permalink);}public function getMapsString(){return urlencode($this->name.', '.$this->county->getName().', Sweden');}/*** Constructor*/public function __construct(){$this->companies = new \Doctrine\Common\Collections\ArrayCollection();}/*** Add companies** @param \Webbamboo\SpinnersCommon\Entity\Company $companies* @return City*/public function addCompany(\Webbamboo\SpinnersCommon\Entity\Company $companies){$this->companies[] = $companies;return $this;}/*** Remove companies** @param \Webbamboo\SpinnersCommon\Entity\Company $companies*/public function removeCompany(\Webbamboo\SpinnersCommon\Entity\Company $companies){$this->companies->removeElement($companies);}/*** Get companies** @return \Doctrine\Common\Collections\Collection*/public function getCompanies(){return $this->companies;}/*** Set metatitle** @param \Webbamboo\SpinnersCommon\Entity\Metatitlecity $metatitle* @return City*/public function setMetatitle(\Webbamboo\SpinnersCommon\Entity\Metatitlecity $metatitle = null){$this->metatitle = $metatitle;return $this;}/*** Get metatitle** @return \Webbamboo\SpinnersCommon\Entity\Metatitlecity*/public function getMetatitle(){return $this->metatitle;}/*** Set metadescription** @param \Webbamboo\SpinnersCommon\Entity\Metadescriptioncity $metadescription* @return City*/public function setMetadescription(\Webbamboo\SpinnersCommon\Entity\Metadescriptioncity $metadescription = null){$this->metadescription = $metadescription;return $this;}/*** Get metadescription** @return \Webbamboo\SpinnersCommon\Entity\Metadescriptioncity*/public function getMetadescription(){return $this->metadescription;}/*** Set contentone** @param \Webbamboo\SpinnersCommon\Entity\Contentpartonecity $contentone* @return City*/public function setContentone(\Webbamboo\SpinnersCommon\Entity\Contentpartonecity $contentone = null){$this->contentone = $contentone;return $this;}/*** Get contentone** @return \Webbamboo\SpinnersCommon\Entity\Contentpartonecity*/public function getContentone(){return $this->contentone;}/*** Set contenttwo** @param \Webbamboo\SpinnersCommon\Entity\Contentparttwocity $contenttwo* @return City*/public function setContenttwo(\Webbamboo\SpinnersCommon\Entity\Contentparttwocity $contenttwo = null){$this->contenttwo = $contenttwo;return $this;}/*** Get contenttwo** @return \Webbamboo\SpinnersCommon\Entity\Contentparttwocity*/public function getContenttwo(){return $this->contenttwo;}/*** Set contentthree** @param \Webbamboo\SpinnersCommon\Entity\Contentpartthreecity $contentthree* @return City*/public function setContentthree(\Webbamboo\SpinnersCommon\Entity\Contentpartthreecity $contentthree = null){$this->contentthree = $contentthree;return $this;}/*** Get contentthree** @return \Webbamboo\SpinnersCommon\Entity\Contentpartthreecity*/public function getContentthree(){return $this->contentthree;}/*** Set h1** @param \Webbamboo\SpinnersCommon\Entity\H1city $h1* @return City*/public function setH1(\Webbamboo\SpinnersCommon\Entity\H1city $h1 = null){$this->h1 = $h1;return $this;}/*** Get h1** @return \Webbamboo\SpinnersCommon\Entity\H1city*/public function getH1(){return $this->h1;}/*** Set thumbnail** @param \Webbamboo\SpinnersCommon\Entity\Citythumbnail $thumbnail* @return City*/public function setThumbnail(\Webbamboo\SpinnersCommon\Entity\Citythumbnail $thumbnail = null){$this->thumbnail = $thumbnail;return $this;}/*** Get thumbnail** @return \Webbamboo\SpinnersCommon\Entity\Citythumbnail*/public function getThumbnail(){return $this->thumbnail;}/*** Set population** @param integer $population* @return City*/public function setPopulation($population){$this->population = $population;return $this;}/*** Get population** @return integer*/public function getPopulation(){return $this->population;}/*** Set recommendee** @param \Webbamboo\SpinnersCommon\Entity\Company $recommendee* @return City*/public function setRecommendee(\Webbamboo\SpinnersCommon\Entity\Company $recommendee = null){$this->recommendee = $recommendee;return $this;}/*** Get recommendee** @return \Webbamboo\SpinnersCommon\Entity\Company*/public function getRecommendee(){return $this->recommendee;}/*** Add recommendee** @param \Webbamboo\SpinnersCommon\Entity\Company $recommendee* @return City*/public function addRecommendee(\Webbamboo\SpinnersCommon\Entity\Company $recommendee){$this->recommendee[] = $recommendee;return $this;}/*** Remove recommendee** @param \Webbamboo\SpinnersCommon\Entity\Company $recommendee*/public function removeRecommendee(\Webbamboo\SpinnersCommon\Entity\Company $recommendee){$this->recommendee->removeElement($recommendee);}/*** Add recommendedCity** @param \Webbamboo\SpinnersCommon\Entity\City $recommendedCity* @return City*/public function addRecommendedCity(\Webbamboo\SpinnersCommon\Entity\City $recommendedCity){$this->recommendedCity[] = $recommendedCity;return $this;}/*** Remove recommendedCity** @param \Webbamboo\SpinnersCommon\Entity\City $recommendedCity*/public function removeRecommendedCity(\Webbamboo\SpinnersCommon\Entity\City $recommendedCity){$this->recommendedCity->removeElement($recommendedCity);}/*** Get recommendedCity** @return \Doctrine\Common\Collections\Collection*/public function getRecommendedCity(){return $this->recommendedCity;}/*** Add recommendeeCity** @param \Webbamboo\SpinnersCommon\Entity\City $recommendeeCity* @return City*/public function addRecommendeeCity(\Webbamboo\SpinnersCommon\Entity\City $recommendeeCity){$this->recommendeeCity[] = $recommendeeCity;return $this;}/*** Remove recommendeeCity** @param \Webbamboo\SpinnersCommon\Entity\City $recommendeeCity*/public function removeRecommendeeCity(\Webbamboo\SpinnersCommon\Entity\City $recommendeeCity){$this->recommendeeCity->removeElement($recommendeeCity);}/*** Get recommendeeCity** @return \Doctrine\Common\Collections\Collection*/public function getRecommendeeCity(){return $this->recommendeeCity;}/*** Add interestingarticles** @param \Webbamboo\SpinnersCommon\Entity\InterestingarticleCity $interestingarticles* @return City*/public function addInterestingarticle(\Webbamboo\SpinnersCommon\Entity\InterestingarticleCity $interestingarticles){$this->interestingarticles[] = $interestingarticles;return $this;}/*** Remove interestingarticles** @param \Webbamboo\SpinnersCommon\Entity\InterestingarticleCity $interestingarticles*/public function removeInterestingarticle(\Webbamboo\SpinnersCommon\Entity\InterestingarticleCity $interestingarticles){$this->interestingarticles->removeElement($interestingarticles);}/*** Get interestingarticles** @return \Doctrine\Common\Collections\Collection*/public function getInterestingarticles(){return $this->interestingarticles;}/*** Set h2interesting** @param \Webbamboo\SpinnersCommon\Entity\H2Interesting $h2interesting* @return City*/public function setH2interesting(\Webbamboo\SpinnersCommon\Entity\H2Interesting $h2interesting = null){$this->h2interesting = $h2interesting;return $this;}/*** Get h2interesting** @return \Webbamboo\SpinnersCommon\Entity\H2Interesting*/public function getH2interesting(){return $this->h2interesting;}/*** Set manualMetatitle** @param string $manualMetatitle* @return City*/public function setManualMetatitle($manualMetatitle){$this->manualMetatitle = $manualMetatitle;return $this;}/*** Get manualMetatitle** @return string*/public function getManualMetatitle(){return $this->manualMetatitle;}/*** Set manualMetadescription** @param string $manualMetadescription* @return City*/public function setManualMetadescription($manualMetadescription){$this->manualMetadescription = $manualMetadescription;return $this;}/*** Get manualMetadescription** @return string*/public function getManualMetadescription(){return $this->manualMetadescription;}/*** Set manualH1** @param string $manualH1* @return City*/public function setManualH1($manualH1){$this->manualH1 = $manualH1;return $this;}/*** Get manualH1** @return string*/public function getManualH1(){return $this->manualH1;}/*** Set manualContentone** @param string $manualContentone* @return City*/public function setManualContentone($manualContentone){$this->manualContentone = $manualContentone;return $this;}/*** Get manualContentone** @return string*/public function getManualContentone(){return $this->manualContentone;}/*** Set manualContenttwo** @param string $manualContenttwo* @return City*/public function setManualContenttwo($manualContenttwo){$this->manualContenttwo = $manualContenttwo;return $this;}/*** Get manualContenttwo** @return string*/public function getManualContenttwo(){return $this->manualContenttwo;}/*** Set manualContentthree** @param string $manualContentthree* @return City*/public function setManualContentthree($manualContentthree){$this->manualContentthree = $manualContentthree;return $this;}/*** Get manualContentthree** @return string*/public function getManualContentthree(){return $this->manualContentthree;}/*** Set manualThumbnail** @param string $manualThumbnail* @return City*/public function setManualThumbnail($manualThumbnail){$this->manualThumbnail = $manualThumbnail;return $this;}/*** Get manualThumbnail** @return string*/public function getManualThumbnail(){return $this->manualThumbnail;}/*** Set manualThumbnailname** @param string $manualThumbnailname* @return City*/public function setManualThumbnailname($manualThumbnailname){$this->manualThumbnailname = $manualThumbnailname;return $this;}/*** Get manualThumbnailname** @return string*/public function getManualThumbnailname(){return $this->manualThumbnailname;}/*** Set manualThumbnailalt** @param string $manualThumbnailalt* @return City*/public function setManualThumbnailalt($manualThumbnailalt){$this->manualThumbnailalt = $manualThumbnailalt;return $this;}/*** Get manualThumbnailalt** @return string*/public function getManualThumbnailalt(){return $this->manualThumbnailalt;}/*** Set manual** @param boolean $manual* @return City*/public function setManual($manual){$this->manual = $manual;return $this;}/*** Get manual** @return boolean*/public function getManual(){return $this->manual;}}