<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Notice;
/**
* @ORM\Table(name="es_notice_oznamenie")
* @ORM\Entity()
* @ORM\HasLifecycleCallbacks()
*/
class NoticeOznamenie {
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\OneToOne(targetEntity="Notice", inversedBy="oznamenie")
* @ORM\JoinColumn(name="notice_id", referencedColumnName="id")
*/
protected $notice;
/**
* @ORM\Column(name="vznik", type="datetime", nullable=true)
*/
protected $vznik;
/**
* @ORM\Column(name="zistenie", type="datetime", nullable=true)
*/
protected $zistenie;
/**
* @ORM\Column(name="druh", type="string", length=255, nullable=true)
*/
protected $druh;
/**
* @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="opis", type="text", length=65535, nullable=true)
*/
protected $opis;
/**
* @ORM\Column(name="priciny", type="string", length=2550, nullable=true)
*/
protected $priciny;
/**
* @ORM\Column(name="priciny_opis", type="string", length=2550, nullable=true)
*/
protected $pricinyOpis;
/**
* @ORM\Column(name="nasledky", type="string", length=2550, nullable=true)
*/
protected $nasledky;
/**
* @ORM\Column(name="nasledky_opis", type="string", length=2550, nullable=true)
*/
protected $nasledkyOpis;
/**
* @ORM\Column(name="nasledky_plocha", type="string", length=2550, nullable=true)
*/
protected $nasledkyPlocha;
/**
* @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="urad_pracovisko", type="string", length=255, nullable=true)
*/
protected $uradPracovisko;
/**
* @ORM\Column(name="datum_podania", type="datetime", nullable=true)
*/
protected $datumPodania;
/**
* @ORM\Column(name="od_nazov", type="string", length=255, nullable=true)
*/
protected $odNazov;
/**
* @ORM\Column(name="od_kat", type="string", length=255, nullable=true)
*/
protected $odKategoria;
/**
* @ORM\Column(name="od_adresa", type="string", length=255, nullable=true)
*/
protected $odAdresa;
/**
* @ORM\Column(name="od_meno", type="string", length=255, nullable=true)
*/
protected $odMeno;
/**
* @ORM\Column(name="od_funkcia", type="string", length=255, nullable=true)
*/
protected $odFunkcia;
/**
* @ORM\Column(name="od_telefon", type="string", length=255, nullable=true)
*/
protected $odTelefon;
/**
* @ORM\Column(name="od_fax", type="string", length=255, nullable=true)
*/
protected $odFax;
/**
* @ORM\Column(name="od_email", type="string", length=255, nullable=true)
*/
protected $odEmail;
/**
* @ORM\Column(name="od_vyp_meno", type="string", length=255, nullable=true)
*/
protected $odVypMeno;
/**
* @ORM\Column(name="od_vyp_funkcia", type="string", length=255, nullable=true)
*/
protected $odVypFunkcia;
/**
* @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 NoticeOznamenie
*/
public function setOpis($opis)
{
$this->opis = $opis;
return $this;
}
/**
* Get opis
*
* @return string
*/
public function getOpis()
{
return $this->opis;
}
/**
* Set druh
*
* @param string $druh
*
* @return NoticeOznamenie
*/
public function setDruh($druh)
{
$this->druh = $druh;
return $this;
}
/**
* Get druh
*
* @return string
*/
public function getDruh()
{
return $this->druh;
}
/**
* Set vznik
*
* @param \DateTime $vznik
*
* @return NoticeOznamenie
*/
public function setVznik($vznik)
{
$this->vznik = $vznik;
return $this;
}
/**
* Get vznik
*
* @return \DateTime
*/
public function getVznik()
{
return $this->vznik;
}
/**
* Set zistenie
*
* @param \DateTime $zistenie
*
* @return NoticeOznamenie
*/
public function setZistenie($zistenie)
{
$this->zistenie = $zistenie;
return $this;
}
/**
* Get zistenie
*
* @return \DateTime
*/
public function getZistenie()
{
return $this->zistenie;
}
/**
* Set notice
*
* @param Notice $notice
*
* @return NoticeOznamenie
*/
public function setNotice(Notice $notice = null)
{
$this->notice = $notice;
return $this;
}
/**
* Get notice
*
* @return Notice
*/
public function getNotice()
{
return $this->notice;
}
/**
* Set priciny
*
* @param string $priciny
*
* @return NoticeOznamenie
*/
public function setPriciny($priciny)
{
//$this->priciny = $priciny;
$this->priciny = json_encode($priciny);
return $this;
}
/**
* Get priciny
*
* @return string
*/
public function getPriciny()
{
//return $this->priciny;
return json_decode($this->priciny, true);
}
/**
* Set pricinyOpis
*
* @param string $pricinyOpis
*
* @return NoticeOznamenie
*/
public function setPricinyOpis($pricinyOpis)
{
$this->pricinyOpis = $pricinyOpis;
return $this;
}
/**
* Get pricinyOpis
*
* @return string
*/
public function getPricinyOpis()
{
return $this->pricinyOpis;
}
/**
* Set nasledky
*
* @param string $nasledky
*
* @return NoticeOznamenie
*/
public function setNasledky($nasledky)
{
//$this->nasledky = $nasledky;
$this->nasledky = json_encode($nasledky);
return $this;
}
/**
* Get nasledky
*
* @return string
*/
public function getNasledky()
{
//return $this->nasledky;
return json_decode($this->nasledky, true);
}
/**
* Set nasledkyOpis
*
* @param string $nasledkyOpis
*
* @return NoticeOznamenie
*/
public function setNasledkyOpis($nasledkyOpis)
{
$this->nasledkyOpis = $nasledkyOpis;
return $this;
}
/**
* Get nasledkyOpis
*
* @return string
*/
public function getNasledkyOpis()
{
return $this->nasledkyOpis;
}
/**
* Set nasledkyPlocha
*
* @param string $nasledkyPlocha
*
* @return NoticeOznamenie
*/
public function setNasledkyPlocha($nasledkyPlocha)
{
$this->nasledkyPlocha = $nasledkyPlocha;
return $this;
}
/**
* Get nasledkyPlocha
*
* @return string
*/
public function getNasledkyPlocha()
{
return $this->nasledkyPlocha;
}
/**
* Set wGSN
*
* @param string $wGSN
*
* @return NoticeOznamenie
*/
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 NoticeOznamenie
*/
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 O
*/
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 O
*/
public function setEdited($edited)
{
$this->edited = $edited;
return $this;
}
/**
* Get edited
*
* @return \DateTime
*/
public function getEdited()
{
return $this->edited;
}
/**
* Set urad
*
* @param string $urad
*
* @return NoticeOznamenie
*/
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 NoticeOznamenie
*/
public function setUradAdresa($uradAdresa)
{
$this->uradAdresa = $uradAdresa;
return $this;
}
/**
* Get uradAdresa
*
* @return string
*/
public function getUradAdresa()
{
return $this->uradAdresa;
}
/**
* Set uradPracovisko
*
* @param string $uradPracovisko
*
* @return NoticeOznamenie
*/
public function setUradPracovisko($uradPracovisko)
{
$this->uradPracovisko = $uradPracovisko;
return $this;
}
/**
* Get uradPracovisko
*
* @return string
*/
public function getUradPracovisko()
{
return $this->uradPracovisko;
}
/**
* Set datumPodania
*
* @param \DateTime $datumPodania
*
* @return NoticeOznamenie
*/
public function setDatumPodania($datumPodania)
{
$this->datumPodania = $datumPodania;
return $this;
}
/**
* Get datumPodania
*
* @return \DateTime
*/
public function getDatumPodania()
{
return $this->datumPodania;
}
/**
* Set odNazov
*
* @param string $odNazov
*
* @return NoticeOznamenie
*/
public function setOdNazov($odNazov)
{
$this->odNazov = $odNazov;
return $this;
}
/**
* Get odNazov
*
* @return string
*/
public function getOdNazov()
{
return $this->odNazov;
}
/**
* Set odKategoria
*
* @param string $odKategoria
*
* @return NoticeOznamenie
*/
public function setOdKategoria($odKategoria)
{
$this->odKategoria = $odKategoria;
return $this;
}
/**
* Get odKategoria
*
* @return string
*/
public function getOdKategoria()
{
return $this->odKategoria;
}
/**
* Set odAdresa
*
* @param string $odAdresa
*
* @return NoticeOznamenie
*/
public function setOdAdresa($odAdresa)
{
$this->odAdresa = $odAdresa;
return $this;
}
/**
* Get odAdresa
*
* @return string
*/
public function getOdAdresa()
{
return $this->odAdresa;
}
/**
* Set odMeno
*
* @param string $odMeno
*
* @return NoticeOznamenie
*/
public function setOdMeno($odMeno)
{
$this->odMeno = $odMeno;
return $this;
}
/**
* Get odMeno
*
* @return string
*/
public function getOdMeno()
{
return $this->odMeno;
}
/**
* Set odFunkcia
*
* @param string $odFunkcia
*
* @return NoticeOznamenie
*/
public function setOdFunkcia($odFunkcia)
{
$this->odFunkcia = $odFunkcia;
return $this;
}
/**
* Get odFunkcia
*
* @return string
*/
public function getOdFunkcia()
{
return $this->odFunkcia;
}
/**
* Set odTelefon
*
* @param string $odTelefon
*
* @return NoticeOznamenie
*/
public function setOdTelefon($odTelefon)
{
$this->odTelefon = $odTelefon;
return $this;
}
/**
* Get odTelefon
*
* @return string
*/
public function getOdTelefon()
{
return $this->odTelefon;
}
/**
* Set odFax
*
* @param string $odFax
*
* @return NoticeOznamenie
*/
public function setOdFax($odFax)
{
$this->odFax = $odFax;
return $this;
}
/**
* Get odFax
*
* @return string
*/
public function getOdFax()
{
return $this->odFax;
}
/**
* Set odEmail
*
* @param string $odEmail
*
* @return NoticeOznamenie
*/
public function setOdEmail($odEmail)
{
$this->odEmail = $odEmail;
return $this;
}
/**
* Get odEmail
*
* @return string
*/
public function getOdEmail()
{
return $this->odEmail;
}
/**
* Set odVypMeno
*
* @param string $odVypMeno
*
* @return NoticeOznamenie
*/
public function setOdVypMeno($odVypMeno)
{
$this->odVypMeno = $odVypMeno;
return $this;
}
/**
* Get odVypMeno
*
* @return string
*/
public function getOdVypMeno()
{
return $this->odVypMeno;
}
/**
* Set odVypFunkcia
*
* @param string $odVypFunkcia
*
* @return NoticeOznamenie
*/
public function setOdVypFunkcia($odVypFunkcia)
{
$this->odVypFunkcia = $odVypFunkcia;
return $this;
}
/**
* Get odVypFunkcia
*
* @return string
*/
public function getOdVypFunkcia()
{
return $this->odVypFunkcia;
}
}