Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppBundle\Entity;
- use CommentsBundle\Entity\Comment;
- use Doctrine\ORM\Mapping as ORM;
- //use UserBundle\Entity\User;
- /**
- * Campground
- *
- * @ORM\Table(name="campground")
- * @ORM\Entity(repositoryClass="AppBundle\Repository\CampgroundRepository")
- */
- class Campground
- {
- /**
- * @var int
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var string
- *
- * @ORM\Column(name="name", type="string", length=100)
- */
- private $name;
- /**
- * @var string
- *
- * @ORM\Column(name="street", type="string", length=100, nullable=true)
- */
- private $street;
- /**
- * @var string
- *
- * @ORM\Column(name="zip", type="string", length=10, nullable=true)
- */
- private $zip;
- /**
- * @var string
- *
- * @ORM\Column(name="town", type="string", length=100, nullable=true)
- */
- private $town;
- /**
- * @var string
- *
- * @ORM\Column(name="country", type="string", length=40, nullable=true)
- */
- private $country;
- /**
- * @var decimal
- *
- * @ORM\Column(name="latitude", type="decimal", precision=11, scale=7, nullable=true)
- */
- private $latitude;
- /**
- * @var decimal
- *
- * @ORM\Column(name="longitude", type="decimal", precision=11, scale=7, nullable=true)
- */
- private $longitude;
- /**
- * @var string
- *
- * @ORM\Column(name="land", type="string", length=100, nullable=true)
- */
- private $land;
- /**
- * @var string
- *
- * @ORM\Column(name="contactNameAffix", type="string", length=100, nullable=true)
- */
- private $contactNameAffix;
- /**
- * @var string
- *
- * @ORM\Column(name="contactName", type="string", length=100)
- */
- private $contactName;
- /**
- * @var string
- *
- * @ORM\Column(name="contactStreet", type="string", length=100)
- */
- private $contactStreet;
- /**
- * @var string
- *
- * @ORM\Column(name="contactZip", type="string", length=10)
- */
- private $contactZip;
- /**
- * @var string
- *
- * @ORM\Column(name="contactTown", type="string", length=100)
- */
- private $contactTown;
- /**
- * @var string
- *
- * @ORM\Column(name="contactPhone", type="string", length=40)
- */
- private $contactPhone;
- /**
- * @var string
- *
- * @ORM\Column(name="contactMail", type="string", length=255, nullable=true)
- */
- private $contactMail;
- /**
- * @var string
- *
- * @ORM\Column(name="homepage", type="string", length=255, nullable=true)
- */
- private $homepage;
- /**
- * @var float
- *
- * @ORM\Column(name="size", type="float")
- */
- private $size;
- /**
- * @var int
- *
- * @ORM\Column(name="area", type="integer")
- */
- private $area;
- /**
- * @var bool
- *
- * @ORM\Column(name="fireplace", type="boolean")
- */
- private $fireplace;
- /**
- * @var bool
- *
- * @ORM\Column(name="parking", type="boolean")
- */
- private $parking;
- /**
- * @var float
- *
- * @ORM\Column(name="priceAdults", type="float", nullable=true)
- */
- private $priceAdults;
- /**
- * @var float
- *
- * @ORM\Column(name="priceChilds", type="float", nullable=true)
- */
- private $priceChilds;
- /**
- * @var float
- *
- * @ORM\Column(name="deposit", type="float", nullable=true)
- */
- private $deposit;
- /**
- * @var bool
- *
- * @ORM\Column(name="house", type="boolean")
- */
- private $house;
- /**
- * @var bool
- *
- * @ORM\Column(name="kitchen", type="boolean")
- */
- private $kitchen;
- /**
- * @var bool
- *
- * @ORM\Column(name="sanitary", type="boolean")
- */
- private $sanitary;
- /**
- * @var bool
- *
- * @ORM\Column(name="lounge", type="boolean")
- */
- private $lounge;
- /**
- * @var bool
- *
- * @ORM\Column(name="water", type="boolean")
- */
- private $water;
- /**
- * @var bool
- *
- * @ORM\Column(name="energy", type="boolean")
- */
- private $energy;
- /**
- * @var int
- *
- * @ORM\Column(name="maxPersons", type="integer")
- */
- private $maxPersons;
- /**
- * @var string
- *
- * @ORM\Column(name="description", type="text", nullable=true)
- */
- private $description;
- /**
- * @var Comment[]
- * @ORM\OneToMany(targetEntity="CommentsBundle\Entity\Comment", mappedBy="campground")
- */
- private $comments;
- /**
- * @var User
- * @ORM\ManyToOne(targetEntity="AppBundle\Entity\User", inversedBy="campgrounds")
- */
- //private $user;
- /**
- * @var Picture
- * @ORM\OneToMany(targetEntity="AppBundle\Entity\Picture", mappedBy="campgrounds")
- */
- private $picture;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set name
- *
- * @param string $name
- *
- * @return Campground
- */
- public function setName($name)
- {
- $this->name = $name;
- return $this;
- }
- /**
- * Get name
- *
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Set street
- *
- * @param string $street
- *
- * @return Campground
- */
- public function setStreet($street)
- {
- $this->street = $street;
- return $this;
- }
- /**
- * Get street
- *
- * @return string
- */
- public function getStreet()
- {
- return $this->street;
- }
- /**
- * Set zip
- *
- * @param string $zip
- *
- * @return Campground
- */
- public function setZip($zip)
- {
- $this->zip = $zip;
- return $this;
- }
- /**
- * Get zip
- *
- * @return string
- */
- public function getZip()
- {
- return $this->zip;
- }
- /**
- * Set town
- *
- * @param string $town
- *
- * @return Campground
- */
- public function setTown($town)
- {
- $this->town = $town;
- return $this;
- }
- /**
- * Get town
- *
- * @return string
- */
- public function getTown()
- {
- return $this->town;
- }
- /**
- * Set country
- *
- * @param string $country
- *
- * @return Campground
- */
- public function setCountry($country)
- {
- $this->country = $country;
- return $this;
- }
- /**
- * Get country
- *
- * @return string
- */
- public function getCountry()
- {
- return $this->country;
- }
- /**
- * Set contactName
- *
- * @param string $contactName
- *
- * @return Campground
- */
- public function setContactName($contactName)
- {
- $this->contactName = $contactName;
- return $this;
- }
- /**
- * Get contactName
- *
- * @return string
- */
- public function getContactName()
- {
- return $this->contactName;
- }
- /**
- * Set contactStreet
- *
- * @param string $contactStreet
- *
- * @return Campground
- */
- public function setContactStreet($contactStreet)
- {
- $this->contactStreet = $contactStreet;
- return $this;
- }
- /**
- * Get contactStreet
- *
- * @return string
- */
- public function getContactStreet()
- {
- return $this->contactStreet;
- }
- /**
- * Set contactZip
- *
- * @param string $contactZip
- *
- * @return Campground
- */
- public function setContactZip($contactZip)
- {
- $this->contactZip = $contactZip;
- return $this;
- }
- /**
- * Get contactZip
- *
- * @return string
- */
- public function getContactZip()
- {
- return $this->contactZip;
- }
- /**
- * Set contactTown
- *
- * @param string $contactTown
- *
- * @return Campground
- */
- public function setContactTown($contactTown)
- {
- $this->contactTown = $contactTown;
- return $this;
- }
- /**
- * Get contactTown
- *
- * @return string
- */
- public function getContactTown()
- {
- return $this->contactTown;
- }
- /**
- * Set contactPhone
- *
- * @param string $contactPhone
- *
- * @return Campground
- */
- public function setContactPhone($contactPhone)
- {
- $this->contactPhone = $contactPhone;
- return $this;
- }
- /**
- * Get contactPhone
- *
- * @return string
- */
- public function getContactPhone()
- {
- return $this->contactPhone;
- }
- /**
- * Set contactMail
- *
- * @param string $contactMail
- *
- * @return Campground
- */
- public function setContactMail($contactMail)
- {
- $this->contactMail = $contactMail;
- return $this;
- }
- /**
- * Get contactMail
- *
- * @return string
- */
- public function getContactMail()
- {
- return $this->contactMail;
- }
- /**
- * Set homepage
- *
- * @param string $homepage
- *
- * @return Campground
- */
- public function setHomepage($homepage)
- {
- $this->homepage = $homepage;
- return $this;
- }
- /**
- * Get homepage
- *
- * @return string
- */
- public function getHomepage()
- {
- return $this->homepage;
- }
- /**
- * Set size
- *
- * @param float $size
- *
- * @return Campground
- */
- public function setSize($size)
- {
- $this->size = $size;
- return $this;
- }
- /**
- * Get size
- *
- * @return float
- */
- public function getSize()
- {
- return $this->size;
- }
- /**
- * Set fireplace
- *
- * @param boolean $fireplace
- *
- * @return Campground
- */
- public function setFireplace($fireplace)
- {
- $this->fireplace = $fireplace;
- return $this;
- }
- /**
- * Get fireplace
- *
- * @return boolean
- */
- public function getFireplace()
- {
- return $this->fireplace;
- }
- /**
- * Set parking
- *
- * @param boolean $parking
- *
- * @return Campground
- */
- public function setParking($parking)
- {
- $this->parking = $parking;
- return $this;
- }
- /**
- * Get parking
- *
- * @return boolean
- */
- public function getParking()
- {
- return $this->parking;
- }
- /**
- * Set priceAdults
- *
- * @param float $priceAdults
- *
- * @return Campground
- */
- public function setPriceAdults($priceAdults)
- {
- $this->priceAdults = $priceAdults;
- return $this;
- }
- /**
- * Get priceAdults
- *
- * @return float
- */
- public function getPriceAdults()
- {
- return $this->priceAdults;
- }
- /**
- * Set priceChilds
- *
- * @param float $priceChilds
- *
- * @return Campground
- */
- public function setPriceChilds($priceChilds)
- {
- $this->priceChilds = $priceChilds;
- return $this;
- }
- /**
- * Get priceChilds
- *
- * @return float
- */
- public function getPriceChilds()
- {
- return $this->priceChilds;
- }
- /**
- * Set deposit
- *
- * @param float $deposit
- *
- * @return Campground
- */
- public function setDeposit($deposit)
- {
- $this->deposit = $deposit;
- return $this;
- }
- /**
- * Get deposit
- *
- * @return float
- */
- public function getDeposit()
- {
- return $this->deposit;
- }
- /**
- * Set house
- *
- * @param boolean $house
- *
- * @return Campground
- */
- public function setHouse($house)
- {
- $this->house = $house;
- return $this;
- }
- /**
- * Get house
- *
- * @return boolean
- */
- public function getHouse()
- {
- return $this->house;
- }
- /**
- * Set kitchen
- *
- * @param boolean $kitchen
- *
- * @return Campground
- */
- public function setKitchen($kitchen)
- {
- $this->kitchen = $kitchen;
- return $this;
- }
- /**
- * Get kitchen
- *
- * @return boolean
- */
- public function getKitchen()
- {
- return $this->kitchen;
- }
- /**
- * Set sanitary
- *
- * @param boolean $sanitary
- *
- * @return Campground
- */
- public function setSanitary($sanitary)
- {
- $this->sanitary = $sanitary;
- return $this;
- }
- /**
- * Get sanitary
- *
- * @return boolean
- */
- public function getSanitary()
- {
- return $this->sanitary;
- }
- /**
- * Set lounge
- *
- * @param boolean $lounge
- *
- * @return Campground
- */
- public function setLounge($lounge)
- {
- $this->lounge = $lounge;
- return $this;
- }
- /**
- * Get lounge
- *
- * @return boolean
- */
- public function getLounge()
- {
- return $this->lounge;
- }
- /**
- * Set water
- *
- * @param boolean $water
- *
- * @return Campground
- */
- public function setWater($water)
- {
- $this->water = $water;
- return $this;
- }
- /**
- * Get water
- *
- * @return boolean
- */
- public function getWater()
- {
- return $this->water;
- }
- /**
- * Set maxPersons
- *
- * @param integer $maxPersons
- *
- * @return Campground
- */
- public function setMaxPersons($maxPersons)
- {
- $this->maxPersons = $maxPersons;
- return $this;
- }
- /**
- * Get maxPersons
- *
- * @return integer
- */
- public function getMaxPersons()
- {
- return $this->maxPersons;
- }
- /**
- * Set description
- *
- * @param string $description
- *
- * @return Campground
- */
- public function setDescription($description)
- {
- $this->description = $description;
- return $this;
- }
- /**
- * Get description
- *
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * Set comments
- *
- * @param \CommentsBundle\Entity\Comment $comments
- *
- * @return Campground
- */
- public function setComments(\CommentsBundle\Entity\Comment $comments = null)
- {
- $this->comments = $comments;
- return $this;
- }
- /**
- * Get comments
- *
- * @return \CommentsBundle\Entity\Comment
- */
- public function getComments()
- {
- return $this->comments;
- }
- public function __toString()
- {
- return strval($this->name);
- }
- /**
- * Constructor
- */
- public function __construct()
- {
- $this->comments = new \Doctrine\Common\Collections\ArrayCollection();
- }
- /**
- * Set area
- *
- * @param integer $area
- *
- * @return Campground
- */
- public function setArea($area)
- {
- $this->area = $area;
- return $this;
- }
- /**
- * Get area
- *
- * @return integer
- */
- public function getArea()
- {
- return $this->area;
- }
- /**
- * Add comment
- *
- * @param \CommentsBundle\Entity\Comment $comment
- *
- * @return Campground
- */
- public function addComment(\CommentsBundle\Entity\Comment $comment)
- {
- $this->comments[] = $comment;
- return $this;
- }
- /**
- * Remove comment
- *
- * @param \CommentsBundle\Entity\Comment $comment
- */
- public function removeComment(\CommentsBundle\Entity\Comment $comment)
- {
- $this->comments->removeElement($comment);
- }
- /**
- * Set user
- *
- * @param \UserBundle\Entity\User $user
- *
- * @return Campground
- */
- public function setUser(\UserBundle\Entity\User $user = null)
- {
- $this->user = $user;
- return $this;
- }
- /**
- * Get user
- *
- * @return \UserBundle\Entity\User
- */
- public function getUser()
- {
- return $this->user;
- }
- /**
- * Set picture
- *
- * @param \AppBundle\Entity\Picture $picture
- *
- * @return Campground
- */
- public function setPicture(\AppBundle\Entity\Picture $picture = null)
- {
- $this->picture = $picture;
- return $this;
- }
- /**
- * Get picture
- *
- * @return \AppBundle\Entity\Picture
- */
- public function getPicture()
- {
- return $this->picture;
- }
- /**
- * Set latitude
- *
- * @param string $latitude
- *
- * @return Campground
- */
- 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 Campground
- */
- public function setLongitude($longitude)
- {
- $this->longitude = $longitude;
- return $this;
- }
- /**
- * Get longitude
- *
- * @return string
- */
- public function getLongitude()
- {
- return $this->longitude;
- }
- /**
- * Set land
- *
- * @param string $land
- *
- * @return Campground
- */
- public function setLand($land)
- {
- $this->land = $land;
- return $this;
- }
- /**
- * Get land
- *
- * @return string
- */
- public function getLand()
- {
- return $this->land;
- }
- /**
- * Set contactNameAffix
- *
- * @param string $contactNameAffix
- *
- * @return Campground
- */
- public function setContactNameAffix($contactNameAffix)
- {
- $this->contactNameAffix = $contactNameAffix;
- return $this;
- }
- /**
- * Get contactNameAffix
- *
- * @return string
- */
- public function getContactNameAffix()
- {
- return $this->contactNameAffix;
- }
- /**
- * Set energy
- *
- * @param boolean $energy
- *
- * @return Campground
- */
- public function setEnergy($energy)
- {
- $this->energy = $energy;
- return $this;
- }
- /**
- * Get energy
- *
- * @return boolean
- */
- public function getEnergy()
- {
- return $this->energy;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement