<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* House
*
* @ORM\Table(name="house")
* @ORM\Entity(repositoryClass="App\Repository\HouseRepository")
*/
class House
{
/**
* @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=255)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="lastName", type="string", length=255)
*/
private $lastName;
/**
* @var string
*
* @ORM\Column(name="address", type="string", length=255)
*/
private $address;
/**
* @var string
*
* @ORM\Column(name="address2", type="string", length=255, nullable=true)
*/
private $address2;
/**
* @var string
*
* @ORM\Column(name="zipcode", type="string", length=255)
*/
private $zipcode;
/**
* @var string
*
* @ORM\Column(name="city", type="string", length=255)
*/
private $city;
/**
* @var string
*
* @ORM\Column(name="mobile", type="string", length=255, nullable=true)
*/
private $mobile;
/**
* @var string
*
* @ORM\Column(name="phone", type="string", length=255, nullable=true)
*/
private $phone;
/**
* @var string
*
* @ORM\Column(name="email", type="string", length=255, nullable=true)
*/
private $email;
/**
* @var string
*
* @ORM\Column(name="profile", type="string", length=255, nullable=true)
*/
private $profile;
/**
* @var int
*
* @ORM\Column(name="occupiers", type="integer", nullable=true)
*/
private $occupiers;
/**
* @var int
*
* @ORM\Column(name="twelve", type="integer", nullable=true)
*/
private $twelve;
/**
* @var int
*
* @ORM\Column(name="sixty", type="integer", nullable=true)
*/
private $sixty;
/**
* @var int
*
* @ORM\Column(name="byday", type="integer", nullable=true)
*/
private $byday;
/**
* @var int
*
* @ORM\Column(name="weeks", type="integer", nullable=true)
*/
private $weeks;
/**
* @var string
*
* @ORM\Column(name="comment", type="text", nullable=true)
*/
private $comment;
/**
* @ORM\OneToMany(targetEntity="SurveyCCAS", mappedBy="house")
*/
private $surveyCCASs;
public function __toString()
{
return $this->getHousename();
}
public function getHousename()
{
return $this->name . ' ' .
$this->lastName . ' '.
$this->address . ' ' .
$this->city;
}
/**
* Get id
*
* @return int
*/
public function getId(){
return $this->id;
}
/**
* Set name
*
* @param string $name
*
* @return House
*/
public function setName($name){
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName(){
return $this->name;
}
/**
* Set lastName
*
* @param string $lastName
*
* @return House
*/
public function setLastName($lastName){
$this->lastName = $lastName;
return $this;
}
/**
* Get lastName
*
* @return string
*/
public function getLastName(){
return $this->lastName;
}
/**
* Set address
*
* @param string $address
*
* @return House
*/
public function setAddress($address){
$this->address = $address;
return $this;
}
/**
* Get address
*
* @return string
*/
public function getAddress(){
return $this->address;
}
/**
* Set address2
*
* @param string $address2
*
* @return House
*/
public function setAddress2($address2){
$this->address2 = $address2;
return $this;
}
/**
* Get address2
*
* @return string
*/
public function getAddress2(){
return $this->address2;
}
/**
* Set zipcode
*
* @param string $zipcode
*
* @return House
*/
public function setZipCode($zipcode){
$this->zipcode = $zipcode;
return $this;
}
/**
* Get zipcode
*
* @return string
*/
public function getZipCode(){
return $this->zipcode;
}
/**
* Set city
*
* @param string $city
*
* @return House
*/
public function setCity($city){
$this->city = $city;
return $this;
}
/**
* Get city
*
* @return string
*/
public function getCity(){
return $this->city;
}
/**
* Set mobile
*
* @param string $mobile
*
* @return House
*/
public function setMobile($mobile){
$this->mobile = $mobile;
return $this;
}
/**
* Get mobile
*
* @return string
*/
public function getMobile()
{
return $this->mobile;
}
/**
* Set phone
*
* @param string $phone
*
* @return House
*/
public function setPhone($phone){
$this->phone = $phone;
return $this;
}
/**
* Get phone
*
* @return string
*/
public function getPhone(){
return $this->phone;
}
/**
* Set email
*
* @param string $email
*
* @return House
*/
public function setEmail($email){
$this->email = $email;
return $this;
}
/**
* Get email
*
* @return string
*/
public function getEmail(){
return $this->email;
}
/**
* Set profile
*
* @param string $profile
*
* @return House
*/
public function setProfile($profile){
$this->profile = $profile;
return $this;
}
/**
* Get profile
*
* @return string
*/
public function getProfile(){
return $this->profile;
}
/**
* Set occupiers
*
* @param integer $occupiers
*
* @return House
*/
public function setOccupiers($occupiers){
$this->occupiers = $occupiers;
return $this;
}
/**
* Get occupiers
*
* @return int
*/
public function getOccupiers(){
return $this->occupiers;
}
/**
* Set twelve
*
* @param integer $twelve
*
* @return House
*/
public function setTwelve($twelve){
$this->twelve = $twelve;
return $this;
}
/**
* Get twelve
*
* @return int
*/
public function getTwelve(){
return $this->twelve;
}
/**
* Set sixty
*
* @param integer $sixty
*
* @return House
*/
public function setSixty($sixty){
$this->sixty = $sixty;
return $this;
}
/**
* Get sixty
*
* @return int
*/
public function getSixty(){
return $this->sixty;
}
/**
* Set byday
*
* @param integer $byday
*
* @return House
*/
public function setByday($byday){
$this->byday = $byday;
return $this;
}
/**
* Get byday
*
* @return int
*/
public function getByday(){
return $this->byday;
}
/**
* Set weeks
*
* @param integer $weeks
*
* @return House
*/
public function setWeeks($weeks){
$this->weeks = $weeks;
return $this;
}
/**
* Get weeks
*
* @return int
*/
public function getWeeks(){
return $this->weeks;
}
/**
* Set away
*
* @param integer $away
*
* @return House
*/
public function setAway($away){
$this->away = $away;
return $this;
}
/**
* Get away
*
* @return int
*/
public function getAway(){
return $this->away;
}
/**
* Constructor
*/
public function __construct()
{
$this->surveyCCASs = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Set comment
*
* @param string $comment
*
* @return House
*/
public function setComment($comment)
{
$this->comment = $comment;
return $this;
}
/**
* Get comment
*
* @return string
*/
public function getComment()
{
return $this->comment;
}
/**
* Add surveyCCAS
*
* @param \App\Entity\SurveyCCAS $surveyCCAS
*
* @return House
*/
public function addSurveyCCAS(\App\Entity\SurveyCCAS $surveyCCAS)
{
$this->surveyCCASs[] = $surveyCCAS;
return $this;
}
/**
* Remove surveyCCAS
*
* @param \App\Entity\SurveyCCAS $surveyCCAS
*/
public function removeSurveyCCAS(\App\Entity\SurveyCCAS $surveyCCAS)
{
$this->surveyCCASs->removeElement($surveyCCAS);
}
/**
* Get surveyCCASs
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getSurveyCCASs()
{
return $this->surveyCCASs;
}
}