<?php
namespace Notaris\AdminBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use PhpParser\Node\Expr\Cast\String_;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Immo
*
* @ORM\Entity(repositoryClass="Notaris\AdminBundle\Entity\ImmoRepository")
* @ORM\Table(name="sven_immo",indexes={
* @ORM\Index(name="active_index", columns={"notary_id", "immo_id","is_active"})
* }))
*/
class Immo
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var integer
*
* @ORM\Column(name="immo_id", type="integer")
*/
private $immoId;
/**
* @ORM\ManyToOne(targetEntity="Notaris\AdminBundle\Entity\Notary")
* @ORM\JoinColumn(name="notary_id", referencedColumnName="id", onDelete="CASCADE")
*/
private $notary;
/**
* @ORM\Column(type="boolean", name="is_active")
* @Assert\Type("boolean")
*/
private $isActive;
/**
* @Gedmo\Timestampable(on="create")
* @ORM\Column(name="created", type="datetime")
*/
private $created;
/**
* @ORM\Column(name="updated", type="datetime")
* @Gedmo\Timestampable(on="update")
*/
private $updated;
/**
* @var \DateTime
*
* @ORM\Column(name="publication_date", type="datetime")
*/
private $publicationDate;
/**
* @var string
*
* @ORM\Column(name="transactionType", type="string", length=255, nullable=true)
*/
private $transactionType;
/**
* @var string
*
* @ORM\Column(name="type", type="string", length=255, nullable=true)
*/
private $type;
/**
* @var string
*
* @ORM\Column(name="zipcode", type="string", length=255, nullable=true)
*/
private $zipcode;
/**
* @var array
*
* @ORM\Column(name="city", type="json", length=65535, nullable=true)
*/
private $city;
/**
* @var string
*
* @ORM\Column(name="link", type="string", length=255, nullable=true)
*/
private $link;
/**
* @var string
*
* @ORM\Column(name="price", type="decimal", nullable=true)
*/
private $price;
/**
* @var array
*
* @ORM\Column(name="street", type="json", length=65535, nullable=true)
*/
private $street;
/**
* @var string
*
* @ORM\Column(name="number", type="string", length=255, nullable=true)
*/
private $number;
/**
* @var string
*
* @ORM\Column(name="filename", type="string", length=255, nullable=true)
*/
protected $filename;
/**
* @var integer
*
* @ORM\Column(type="integer")
*/
private $position = 0;
/**
* @var integer
*
* @ORM\Column(type="integer", nullable=true)
*/
private $extReference;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function getImmoId()
{
return $this->immoId;
}
/**
* @param mixed $immoId
*/
public function setImmoId($immoId)
{
$this->immoId = $immoId;
}
/**
* Set transactionType
*
* @param string $transactionType
*
* @return Immo
*/
public function setTransactionType($transactionType)
{
$this->transactionType = $transactionType;
return $this;
}
/**
* Get transactionType
*
* @return string
*/
public function getTransactionType()
{
return $this->transactionType;
}
/**
* Set type
*
* @param string $type
*
* @return Immo
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Get type
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Set zipcode
*
* @param string $zipcode
*
* @return Immo
*/
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 Immo
*/
public function setCity($city)
{
$this->city = $city;
return $this;
}
/**
* Get city
*
* @return array
*/
public function getCity()
{
return $this->city;
}
/**
* Set link
*
* @param string $link
*
* @return Immo
*/
public function setLink($link)
{
$this->link = $link;
return $this;
}
/**
* Get link
*
* @return string
*/
public function getLink()
{
return $this->link;
}
/**
* Set publicationDate
*
* @param \DateTime $publicationDate
*
* @return Immo
*/
public function setPublicationDate($publicationDate)
{
$this->publicationDate = $publicationDate;
return $this;
}
/**
* Get publicationDate
*
* @return \DateTime
*/
public function getPublicationDate()
{
return $this->publicationDate;
}
/**
* Set price
*
* @param string $price
*
* @return Immo
*/
public function setPrice($price)
{
$this->price = $price;
return $this;
}
/**
* Get price
*
* @return string
*/
public function getPrice()
{
return $this->price;
}
/**
* Set street
*
* @param array $street
*
* @return Immo
*/
public function setStreet($street)
{
$this->street = $street;
return $this;
}
/**
* Get street
*
* @return array
*/
public function getStreet()
{
return $this->street;
}
/**
* Set notary
*
* @param \Notaris\AdminBundle\Entity\Notary $notary
* @return Immo
*/
public function setNotary(\Notaris\AdminBundle\Entity\Notary $notary = null)
{
$this->notary = $notary;
return $this;
}
/**
* Get notary
*
* @return \Notaris\AdminBundle\Entity\Notary
*/
public function getNotary()
{
return $this->notary;
}
/**
* @return mixed
*/
public function getisActive()
{
return $this->isActive;
}
/**
* @param mixed $isActive
*/
public function setIsActive($isActive)
{
$this->isActive = $isActive;
}
/**
* @return mixed
*/
public function getCreated()
{
return $this->created;
}
/**
* @param mixed $created
*/
public function setCreated($created)
{
$this->created = $created;
}
/**
* @return mixed
*/
public function getUpdated()
{
return $this->updated;
}
/**
* @param mixed $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getNumber()
{
return $this->number;
}
/**
* @param string $number
*/
public function setNumber($number)
{
$this->number = $number;
}
/**
* Set asset
*
* @param string $filename
* @return Immo
*/
public function setFilename($filename)
{
$this->filename = $filename;
return $this;
}
/**
* Get asset
*
* @return string
*/
public function getFilename()
{
return $this->filename;
}
/**
* @return int
*/
public function getPosition()
{
return $this->position;
}
/**
* @param int $position
*/
public function setPosition($position)
{
$this->position = $position;
}
/**
* @return int
*/
public function getExtReference()
{
return $this->extReference;
}
/**
* @param int $extReference
*/
public function setExtReference($extReference)
{
$this->extReference = $extReference;
}
}