src/Notaris/AdminBundle/Entity/Immo.php line 18

Open in your IDE?
  1. <?php
  2. namespace Notaris\AdminBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use PhpParser\Node\Expr\Cast\String_;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. /**
  8.  * Immo
  9.  *
  10.  * @ORM\Entity(repositoryClass="Notaris\AdminBundle\Entity\ImmoRepository")
  11.  * @ORM\Table(name="sven_immo",indexes={
  12.  *     @ORM\Index(name="active_index", columns={"notary_id", "immo_id","is_active"})
  13.  *     }))
  14.  */
  15. class Immo
  16. {
  17.     /**
  18.      * @var integer
  19.      *
  20.      * @ORM\Column(name="id", type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     private $id;
  25.     /**
  26.      * @var integer
  27.      *
  28.      * @ORM\Column(name="immo_id", type="integer")
  29.      */
  30.     private $immoId;
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity="Notaris\AdminBundle\Entity\Notary")
  33.      * @ORM\JoinColumn(name="notary_id", referencedColumnName="id", onDelete="CASCADE")
  34.      */
  35.     private $notary;
  36.     /**
  37.      * @ORM\Column(type="boolean", name="is_active")
  38.      * @Assert\Type("boolean")
  39.      */
  40.     private $isActive;
  41.     /**
  42.      * @Gedmo\Timestampable(on="create")
  43.      * @ORM\Column(name="created", type="datetime")
  44.      */
  45.     private $created;
  46.     /**
  47.      * @ORM\Column(name="updated", type="datetime")
  48.      * @Gedmo\Timestampable(on="update")
  49.      */
  50.     private $updated;
  51.     /**
  52.      * @var \DateTime
  53.      *
  54.      * @ORM\Column(name="publication_date", type="datetime")
  55.      */
  56.     private $publicationDate;
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="transactionType", type="string", length=255, nullable=true)
  61.      */
  62.     private $transactionType;
  63.     /**
  64.      * @var string
  65.      *
  66.      * @ORM\Column(name="type", type="string", length=255, nullable=true)
  67.      */
  68.     private $type;
  69.     /**
  70.      * @var string
  71.      *
  72.      * @ORM\Column(name="zipcode", type="string", length=255, nullable=true)
  73.      */
  74.     private $zipcode;
  75.     /**
  76.      * @var array
  77.      *
  78.      * @ORM\Column(name="city", type="json", length=65535, nullable=true)
  79.      */
  80.     private $city;
  81.     /**
  82.      * @var string
  83.      *
  84.      * @ORM\Column(name="link", type="string", length=255, nullable=true)
  85.      */
  86.     private $link;
  87.     /**
  88.      * @var string
  89.      *
  90.      * @ORM\Column(name="price", type="decimal", nullable=true)
  91.      */
  92.     private $price;
  93.     /**
  94.      * @var array
  95.      *
  96.      * @ORM\Column(name="street", type="json", length=65535, nullable=true)
  97.      */
  98.     private $street;
  99.     /**
  100.      * @var string
  101.      *
  102.      * @ORM\Column(name="number", type="string", length=255, nullable=true)
  103.      */
  104.     private $number;
  105.     /**
  106.      * @var string
  107.      *
  108.      * @ORM\Column(name="filename", type="string", length=255, nullable=true)
  109.      */
  110.     protected $filename;
  111.     /**
  112.      * @var integer
  113.      *
  114.      * @ORM\Column(type="integer")
  115.      */
  116.     private $position = 0;
  117.     /**
  118.      * @var integer
  119.      *
  120.      * @ORM\Column(type="integer", nullable=true)
  121.      */
  122.     private $extReference;
  123.     /**
  124.      * Get id
  125.      *
  126.      * @return integer
  127.      */
  128.     public function getId()
  129.     {
  130.         return $this->id;
  131.     }
  132.     /**
  133.      * @return mixed
  134.      */
  135.     public function getImmoId()
  136.     {
  137.         return $this->immoId;
  138.     }
  139.     /**
  140.      * @param mixed $immoId
  141.      */
  142.     public function setImmoId($immoId)
  143.     {
  144.         $this->immoId = $immoId;
  145.     }
  146.     /**
  147.      * Set transactionType
  148.      *
  149.      * @param string $transactionType
  150.      *
  151.      * @return Immo
  152.      */
  153.     public function setTransactionType($transactionType)
  154.     {
  155.         $this->transactionType = $transactionType;
  156.         return $this;
  157.     }
  158.     /**
  159.      * Get transactionType
  160.      *
  161.      * @return string
  162.      */
  163.     public function getTransactionType()
  164.     {
  165.         return $this->transactionType;
  166.     }
  167.     /**
  168.      * Set type
  169.      *
  170.      * @param string $type
  171.      *
  172.      * @return Immo
  173.      */
  174.     public function setType($type)
  175.     {
  176.         $this->type = $type;
  177.         return $this;
  178.     }
  179.     /**
  180.      * Get type
  181.      *
  182.      * @return string
  183.      */
  184.     public function getType()
  185.     {
  186.         return $this->type;
  187.     }
  188.     /**
  189.      * Set zipcode
  190.      *
  191.      * @param string $zipcode
  192.      *
  193.      * @return Immo
  194.      */
  195.     public function setZipcode($zipcode)
  196.     {
  197.         $this->zipcode = $zipcode;
  198.         return $this;
  199.     }
  200.     /**
  201.      * Get zipcode
  202.      *
  203.      * @return string
  204.      */
  205.     public function getZipcode()
  206.     {
  207.         return $this->zipcode;
  208.     }
  209.     /**
  210.      * Set city
  211.      *
  212.      * @param string $city
  213.      *
  214.      * @return Immo
  215.      */
  216.     public function setCity($city)
  217.     {
  218.         $this->city = $city;
  219.         return $this;
  220.     }
  221.     /**
  222.      * Get city
  223.      *
  224.      * @return array
  225.      */
  226.     public function getCity()
  227.     {
  228.         return $this->city;
  229.     }
  230.     /**
  231.      * Set link
  232.      *
  233.      * @param string $link
  234.      *
  235.      * @return Immo
  236.      */
  237.     public function setLink($link)
  238.     {
  239.         $this->link = $link;
  240.         return $this;
  241.     }
  242.     /**
  243.      * Get link
  244.      *
  245.      * @return string
  246.      */
  247.     public function getLink()
  248.     {
  249.         return $this->link;
  250.     }
  251.     /**
  252.      * Set publicationDate
  253.      *
  254.      * @param \DateTime $publicationDate
  255.      *
  256.      * @return Immo
  257.      */
  258.     public function setPublicationDate($publicationDate)
  259.     {
  260.         $this->publicationDate = $publicationDate;
  261.         return $this;
  262.     }
  263.     /**
  264.      * Get publicationDate
  265.      *
  266.      * @return \DateTime
  267.      */
  268.     public function getPublicationDate()
  269.     {
  270.         return $this->publicationDate;
  271.     }
  272.     /**
  273.      * Set price
  274.      *
  275.      * @param string $price
  276.      *
  277.      * @return Immo
  278.      */
  279.     public function setPrice($price)
  280.     {
  281.         $this->price = $price;
  282.         return $this;
  283.     }
  284.     /**
  285.      * Get price
  286.      *
  287.      * @return string
  288.      */
  289.     public function getPrice()
  290.     {
  291.         return $this->price;
  292.     }
  293.     /**
  294.      * Set street
  295.      *
  296.      * @param array $street
  297.      *
  298.      * @return Immo
  299.      */
  300.     public function setStreet($street)
  301.     {
  302.         $this->street = $street;
  303.         return $this;
  304.     }
  305.     /**
  306.      * Get street
  307.      *
  308.      * @return array
  309.      */
  310.     public function getStreet()
  311.     {
  312.         return $this->street;
  313.     }
  314.     /**
  315.      * Set notary
  316.      *
  317.      * @param \Notaris\AdminBundle\Entity\Notary $notary
  318.      * @return Immo
  319.      */
  320.     public function setNotary(\Notaris\AdminBundle\Entity\Notary $notary = null)
  321.     {
  322.         $this->notary = $notary;
  323.         return $this;
  324.     }
  325.     /**
  326.      * Get notary
  327.      *
  328.      * @return \Notaris\AdminBundle\Entity\Notary
  329.      */
  330.     public function getNotary()
  331.     {
  332.         return $this->notary;
  333.     }
  334.     /**
  335.      * @return mixed
  336.      */
  337.     public function getisActive()
  338.     {
  339.         return $this->isActive;
  340.     }
  341.     /**
  342.      * @param mixed $isActive
  343.      */
  344.     public function setIsActive($isActive)
  345.     {
  346.         $this->isActive = $isActive;
  347.     }
  348.     /**
  349.      * @return mixed
  350.      */
  351.     public function getCreated()
  352.     {
  353.         return $this->created;
  354.     }
  355.     /**
  356.      * @param mixed $created
  357.      */
  358.     public function setCreated($created)
  359.     {
  360.         $this->created = $created;
  361.     }
  362.     /**
  363.      * @return mixed
  364.      */
  365.     public function getUpdated()
  366.     {
  367.         return $this->updated;
  368.     }
  369.     /**
  370.      * @param mixed $updated
  371.      */
  372.     public function setUpdated($updated)
  373.     {
  374.         $this->updated = $updated;
  375.     }
  376.     /**
  377.      * @return string
  378.      */
  379.     public function getNumber()
  380.     {
  381.         return $this->number;
  382.     }
  383.     /**
  384.      * @param string $number
  385.      */
  386.     public function setNumber($number)
  387.     {
  388.         $this->number = $number;
  389.     }
  390.     /**
  391.      * Set asset
  392.      *
  393.      * @param string $filename
  394.      * @return Immo
  395.      */
  396.     public function setFilename($filename)
  397.     {
  398.         $this->filename = $filename;
  399.         return $this;
  400.     }
  401.     /**
  402.      * Get asset
  403.      *
  404.      * @return string
  405.      */
  406.     public function getFilename()
  407.     {
  408.         return $this->filename;
  409.     }
  410.     /**
  411.      * @return int
  412.      */
  413.     public function getPosition()
  414.     {
  415.         return $this->position;
  416.     }
  417.     /**
  418.      * @param int $position
  419.      */
  420.     public function setPosition($position)
  421.     {
  422.         $this->position = $position;
  423.     }
  424.     /**
  425.      * @return int
  426.      */
  427.     public function getExtReference()
  428.     {
  429.         return $this->extReference;
  430.     }
  431.     /**
  432.      * @param int $extReference
  433.      */
  434.     public function setExtReference($extReference)
  435.     {
  436.         $this->extReference = $extReference;
  437.     }
  438. }