<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Notice;
/**
* @ORM\Table(name="es_notice_podnet")
* @ORM\Entity()
* @ORM\HasLifecycleCallbacks()
*/
class NoticePodnet {
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\OneToOne(targetEntity="Notice", inversedBy="podnet")
* @ORM\JoinColumn(name="notice_id", referencedColumnName="id")
*/
protected $notice;
/**
* @ORM\Column(name="opis", type="text", length=65535, nullable=true)
*/
protected $opis;
/**
* @ORM\Column(name="vznik", type="datetime", nullable=true)
*/
protected $vznik;
/**
* @ORM\Column(name="WGSN", type="string", length=255, nullable=true)
*/
protected $WGSN;
/**
* @ORM\Column(name="WGSE", type="string", length=255, nullable=true)
*/
protected $WGSE;
/**
* @ORM\Column(name="poskodene_zdroje", type="string", length=2550, nullable=true)
*/
protected $poskodeneZdroje;
/**
* @ORM\Column(name="od_meno", type="string", length=255, nullable=true)
*/
protected $odNazov;
/**
* @ORM\Column(name="od_adresa", type="string", length=255, nullable=true)
*/
protected $odAdresa;
/**
* @ORM\Column(name="od_email", type="string", length=255, nullable=true)
*/
protected $odEmail;
/**
* @ORM\Column(name="od_telefon", type="string", length=255, nullable=true)
*/
protected $odTelefon;
/**
* @ORM\Column(name="urad", type="string", length=255, nullable=true)
*/
protected $urad;
/**
* @ORM\Column(name="urad_adresa", type="string", length=255, nullable=true)
*/
protected $uradAdresa;
/**
* @ORM\Column(name="created", type="datetime")
*/
protected $created;
/**
* @ORM\Column(name="edited", type="datetime")
*/
protected $edited;
/**
* @ORM\PrePersist()
*/
public function preCreated() {
$this->created = new \DateTime('now');
}
/**
* @ORM\PrePersist()
* @ORM\PreUpdate()
*/
public function preEdited() {
$this->edited = new \DateTime('now');
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set opis
*
* @param string $opis
*
* @return NoticePodnet
*/
public function setOpis($opis)
{
$this->opis = $opis;
return $this;
}
/**
* Get opis
*
* @return string
*/
public function getOpis()
{
return $this->opis;
}
/**
* Set vznik
*
* @param \DateTime $vznik
*
* @return NoticePodnet
*/
public function setVznik($vznik)
{
$this->vznik = $vznik;
return $this;
}
/**
* Get vznik
*
* @return \DateTime
*/
public function getVznik()
{
return $this->vznik;
}
/**
* Set poskodeneZdroje
*
* @param string $poskodeneZdroje
*
* @return NoticePodnet
*/
public function setPoskodeneZdroje($poskodeneZdroje)
{
$this->poskodeneZdroje = json_encode($poskodeneZdroje);
return $this;
}
/**
* Get poskodeneZdroje
*
* @return string
*/
public function getPoskodeneZdroje()
{
return json_decode($this->poskodeneZdroje, true);
}
/**
* Set notice
*
* @param \App\Entity\Notice $notice
*
* @return NoticePodnet
*/
public function setNotice(\App\Entity\Notice $notice = null)
{
$this->notice = $notice;
return $this;
}
/**
* Get notice
*
* @return \App\Entity\Notice
*/
public function getNotice()
{
return $this->notice;
}
/**
* Set wGSN
*
* @param string $wGSN
*
* @return NoticePodnet
*/
public function setWGSN($wGSN)
{
$this->WGSN = $wGSN;
return $this;
}
/**
* Get wGSN
*
* @return string
*/
public function getWGSN()
{
return $this->WGSN;
}
/**
* Set wGSE
*
* @param string $wGSE
*
* @return NoticePodnet
*/
public function setWGSE($wGSE)
{
$this->WGSE = $wGSE;
return $this;
}
/**
* Get wGSE
*
* @return string
*/
public function getWGSE()
{
return $this->WGSE;
}
/**
* Set created
*
* @param \DateTime $created
*
* @return P
*/
public function setCreated($created)
{
$this->created = $created;
return $this;
}
/**
* Get created
*
* @return \DateTime
*/
public function getCreated()
{
return $this->created;
}
/**
* Set edited
*
* @param \DateTime $edited
*
* @return P
*/
public function setEdited($edited)
{
$this->edited = $edited;
return $this;
}
/**
* Get edited
*
* @return \DateTime
*/
public function getEdited()
{
return $this->edited;
}
/**
* Set odNazov
*
* @param string $odNazov
*
* @return NoticePodnet
*/
public function setOdNazov($odNazov)
{
$this->odNazov = $odNazov;
return $this;
}
/**
* Get odNazov
*
* @return string
*/
public function getOdNazov()
{
return $this->odNazov;
}
/**
* Set odAdresa
*
* @param string $odAdresa
*
* @return NoticePodnet
*/
public function setOdAdresa($odAdresa)
{
$this->odAdresa = $odAdresa;
return $this;
}
/**
* Get odAdresa
*
* @return string
*/
public function getOdAdresa()
{
return $this->odAdresa;
}
/**
* Set odEmail
*
* @param string $odEmail
*
* @return NoticePodnet
*/
public function setOdEmail($odEmail)
{
$this->odEmail = $odEmail;
return $this;
}
/**
* Get odEmail
*
* @return string
*/
public function getOdEmail()
{
return $this->odEmail;
}
/**
* Set odTelefon
*
* @param string $odTelefon
*
* @return NoticePodnet
*/
public function setOdTelefon($odTelefon)
{
$this->odTelefon = $odTelefon;
return $this;
}
/**
* Get odTelefon
*
* @return string
*/
public function getOdTelefon()
{
return $this->odTelefon;
}
/**
* Set urad
*
* @param string $urad
*
* @return NoticePodnet
*/
public function setUrad($urad)
{
$this->urad = $urad;
return $this;
}
/**
* Get urad
*
* @return string
*/
public function getUrad()
{
return $this->urad;
}
/**
* Set uradAdresa
*
* @param string $uradAdresa
*
* @return NoticePodnet
*/
public function setUradAdresa($uradAdresa)
{
$this->uradAdresa = $uradAdresa;
return $this;
}
/**
* Get uradAdresa
*
* @return string
*/
public function getUradAdresa()
{
return $this->uradAdresa;
}
}