src/Entity/NoticeOznamenie.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Entity\Notice;
  5. /**
  6.  * @ORM\Table(name="es_notice_oznamenie")
  7.  * @ORM\Entity() 
  8.  * @ORM\HasLifecycleCallbacks()
  9.  */
  10. class NoticeOznamenie {
  11.     /**
  12.      * @ORM\Column(name="id", type="integer")     
  13.      * @ORM\Id     
  14.      * @ORM\GeneratedValue(strategy="AUTO")     
  15.      */
  16.     protected $id;
  17.     /**
  18.      * @ORM\OneToOne(targetEntity="Notice", inversedBy="oznamenie") 
  19.      * @ORM\JoinColumn(name="notice_id", referencedColumnName="id")
  20.      */
  21.     protected $notice;
  22.     /**
  23.      * @ORM\Column(name="vznik", type="datetime", nullable=true)      
  24.      */
  25.     protected $vznik;
  26.     /**
  27.      * @ORM\Column(name="zistenie", type="datetime", nullable=true)     
  28.      */
  29.     protected $zistenie;
  30.     /**
  31.      * @ORM\Column(name="druh", type="string", length=255, nullable=true)     
  32.      */
  33.     protected $druh;
  34.     /**
  35.      * @ORM\Column(name="WGSN", type="string", length=255, nullable=true)     
  36.      */
  37.     protected $WGSN;
  38.     /**
  39.      * @ORM\Column(name="WGSE", type="string", length=255, nullable=true)     
  40.      */
  41.     protected $WGSE;
  42.     /**
  43.      * @ORM\Column(name="opis", type="text", length=65535, nullable=true)      
  44.      */
  45.     protected $opis;
  46.     /**
  47.      * @ORM\Column(name="priciny", type="string", length=2550, nullable=true)     
  48.      */
  49.     protected $priciny;
  50.     
  51.     /**
  52.      * @ORM\Column(name="priciny_opis", type="string", length=2550, nullable=true)     
  53.      */
  54.     protected $pricinyOpis;
  55.     
  56.     /**
  57.      * @ORM\Column(name="nasledky", type="string", length=2550, nullable=true)     
  58.      */
  59.     protected $nasledky;
  60.     
  61.     /**
  62.      * @ORM\Column(name="nasledky_opis", type="string", length=2550, nullable=true)     
  63.      */
  64.     protected $nasledkyOpis;
  65.     
  66.     /**
  67.      * @ORM\Column(name="nasledky_plocha", type="string", length=2550, nullable=true)     
  68.      */
  69.     protected $nasledkyPlocha;
  70.     
  71.     
  72.     
  73.     /**
  74.      * @ORM\Column(name="urad", type="string", length=255, nullable=true)     
  75.      */
  76.     protected $urad;
  77.     
  78.     /**
  79.      * @ORM\Column(name="urad_adresa", type="string", length=255, nullable=true)     
  80.      */
  81.     protected $uradAdresa;
  82.     
  83.     /**
  84.      * @ORM\Column(name="urad_pracovisko", type="string", length=255, nullable=true)     
  85.      */
  86.     protected $uradPracovisko;
  87.     
  88.     /**
  89.      * @ORM\Column(name="datum_podania", type="datetime", nullable=true)     
  90.      */
  91.     protected $datumPodania;
  92.     
  93.     /**
  94.      * @ORM\Column(name="od_nazov", type="string", length=255, nullable=true)     
  95.      */
  96.     protected $odNazov;
  97.     
  98.     /**
  99.      * @ORM\Column(name="od_kat", type="string", length=255, nullable=true)     
  100.      */
  101.     protected $odKategoria;
  102.     
  103.     /**
  104.      * @ORM\Column(name="od_adresa", type="string", length=255, nullable=true)     
  105.      */
  106.     protected $odAdresa;
  107.     
  108.     /**
  109.      * @ORM\Column(name="od_meno", type="string", length=255, nullable=true)     
  110.      */
  111.     protected $odMeno;
  112.     /**
  113.      * @ORM\Column(name="od_funkcia", type="string", length=255, nullable=true)     
  114.      */
  115.     protected $odFunkcia;
  116.     /**
  117.      * @ORM\Column(name="od_telefon", type="string", length=255, nullable=true)     
  118.      */
  119.     protected $odTelefon;
  120.     /**
  121.      * @ORM\Column(name="od_fax", type="string", length=255, nullable=true)     
  122.      */
  123.     protected $odFax;
  124.     /**
  125.      * @ORM\Column(name="od_email", type="string", length=255, nullable=true)     
  126.      */
  127.     protected $odEmail;
  128.     /**
  129.      * @ORM\Column(name="od_vyp_meno", type="string", length=255, nullable=true)     
  130.      */
  131.     protected $odVypMeno;
  132.     /**
  133.      * @ORM\Column(name="od_vyp_funkcia", type="string", length=255, nullable=true)     
  134.      */
  135.     protected $odVypFunkcia;
  136.     
  137.     
  138.     
  139.     
  140.     /**
  141.      * @ORM\Column(name="created", type="datetime")
  142.      */
  143.     protected $created;
  144.     /**
  145.      * @ORM\Column(name="edited", type="datetime")
  146.      */
  147.     protected $edited;
  148.     
  149.     /** 
  150.      * @ORM\PrePersist()
  151.      */
  152.     public function preCreated() {
  153.         $this->created = new \DateTime('now');
  154.     }
  155.     /** 
  156.      * @ORM\PrePersist()
  157.      * @ORM\PreUpdate() 
  158.      */
  159.     public function preEdited() {
  160.         $this->edited = new \DateTime('now');
  161.     }
  162.        
  163.     /**
  164.      * Get id
  165.      *
  166.      * @return integer
  167.      */
  168.     public function getId()
  169.     {
  170.         return $this->id;
  171.     }
  172.     /**
  173.      * Set opis
  174.      *
  175.      * @param string $opis
  176.      *
  177.      * @return NoticeOznamenie
  178.      */
  179.     public function setOpis($opis)
  180.     {
  181.         $this->opis $opis;
  182.         return $this;
  183.     }
  184.     /**
  185.      * Get opis
  186.      *
  187.      * @return string
  188.      */
  189.     public function getOpis()
  190.     {
  191.         return $this->opis;
  192.     }
  193.     /**
  194.      * Set druh
  195.      *
  196.      * @param string $druh
  197.      *
  198.      * @return NoticeOznamenie
  199.      */
  200.     public function setDruh($druh)
  201.     {
  202.         $this->druh $druh;
  203.         return $this;
  204.     }
  205.     /**
  206.      * Get druh
  207.      *
  208.      * @return string
  209.      */
  210.     public function getDruh()
  211.     {
  212.         return $this->druh;
  213.     }
  214.     /**
  215.      * Set vznik
  216.      *
  217.      * @param \DateTime $vznik
  218.      *
  219.      * @return NoticeOznamenie
  220.      */
  221.     public function setVznik($vznik)
  222.     {
  223.         $this->vznik $vznik;
  224.         return $this;
  225.     }
  226.     /**
  227.      * Get vznik
  228.      *
  229.      * @return \DateTime
  230.      */
  231.     public function getVznik()
  232.     {
  233.         return $this->vznik;
  234.     }
  235.     /**
  236.      * Set zistenie
  237.      *
  238.      * @param \DateTime $zistenie
  239.      *
  240.      * @return NoticeOznamenie
  241.      */
  242.     public function setZistenie($zistenie)
  243.     {
  244.         $this->zistenie $zistenie;
  245.         return $this;
  246.     }
  247.     /**
  248.      * Get zistenie
  249.      *
  250.      * @return \DateTime
  251.      */
  252.     public function getZistenie()
  253.     {
  254.         return $this->zistenie;
  255.     }
  256.     /**
  257.      * Set notice
  258.      *
  259.      * @param Notice $notice
  260.      *
  261.      * @return NoticeOznamenie
  262.      */
  263.     public function setNotice(Notice $notice null)
  264.     {
  265.         $this->notice $notice;
  266.         return $this;
  267.     }
  268.     /**
  269.      * Get notice
  270.      *
  271.      * @return Notice
  272.      */
  273.     public function getNotice()
  274.     {
  275.         return $this->notice;
  276.     }
  277.     /**
  278.      * Set priciny
  279.      *
  280.      * @param string $priciny
  281.      *
  282.      * @return NoticeOznamenie
  283.      */
  284.     public function setPriciny($priciny)
  285.     {
  286.         //$this->priciny = $priciny;
  287.         $this->priciny json_encode($priciny);
  288.         return $this;
  289.     }
  290.     /**
  291.      * Get priciny
  292.      *
  293.      * @return string
  294.      */
  295.     public function getPriciny()
  296.     {
  297.         //return $this->priciny;
  298.         return json_decode($this->pricinytrue);
  299.     }
  300.     /**
  301.      * Set pricinyOpis
  302.      *
  303.      * @param string $pricinyOpis
  304.      *
  305.      * @return NoticeOznamenie
  306.      */
  307.     public function setPricinyOpis($pricinyOpis)
  308.     {
  309.         $this->pricinyOpis $pricinyOpis;
  310.         return $this;
  311.     }
  312.     /**
  313.      * Get pricinyOpis
  314.      *
  315.      * @return string
  316.      */
  317.     public function getPricinyOpis()
  318.     {
  319.         return $this->pricinyOpis;
  320.     }
  321.     /**
  322.      * Set nasledky
  323.      *
  324.      * @param string $nasledky
  325.      *
  326.      * @return NoticeOznamenie
  327.      */
  328.     public function setNasledky($nasledky)
  329.     {
  330.         //$this->nasledky = $nasledky;
  331.         $this->nasledky json_encode($nasledky);
  332.         return $this;
  333.     }
  334.     /**
  335.      * Get nasledky
  336.      *
  337.      * @return string
  338.      */
  339.     public function getNasledky()
  340.     {
  341.         //return $this->nasledky;
  342.         return json_decode($this->nasledkytrue);
  343.     }
  344.     /**
  345.      * Set nasledkyOpis
  346.      *
  347.      * @param string $nasledkyOpis
  348.      *
  349.      * @return NoticeOznamenie
  350.      */
  351.     public function setNasledkyOpis($nasledkyOpis)
  352.     {
  353.         $this->nasledkyOpis $nasledkyOpis;
  354.         return $this;
  355.     }
  356.     /**
  357.      * Get nasledkyOpis
  358.      *
  359.      * @return string
  360.      */
  361.     public function getNasledkyOpis()
  362.     {
  363.         return $this->nasledkyOpis;
  364.     }
  365.     /**
  366.      * Set nasledkyPlocha
  367.      *
  368.      * @param string $nasledkyPlocha
  369.      *
  370.      * @return NoticeOznamenie
  371.      */
  372.     public function setNasledkyPlocha($nasledkyPlocha)
  373.     {
  374.         $this->nasledkyPlocha $nasledkyPlocha;
  375.         return $this;
  376.     }
  377.     /**
  378.      * Get nasledkyPlocha
  379.      *
  380.      * @return string
  381.      */
  382.     public function getNasledkyPlocha()
  383.     {
  384.         return $this->nasledkyPlocha;
  385.     }
  386.     /**
  387.      * Set wGSN
  388.      *
  389.      * @param string $wGSN
  390.      *
  391.      * @return NoticeOznamenie
  392.      */
  393.     public function setWGSN($wGSN)
  394.     {
  395.         $this->WGSN $wGSN;
  396.         return $this;
  397.     }
  398.     /**
  399.      * Get wGSN
  400.      *
  401.      * @return string
  402.      */
  403.     public function getWGSN()
  404.     {
  405.         return $this->WGSN;
  406.     }
  407.     /**
  408.      * Set wGSE
  409.      *
  410.      * @param string $wGSE
  411.      *
  412.      * @return NoticeOznamenie
  413.      */
  414.     public function setWGSE($wGSE)
  415.     {
  416.         $this->WGSE $wGSE;
  417.         return $this;
  418.     }
  419.     /**
  420.      * Get wGSE
  421.      *
  422.      * @return string
  423.      */
  424.     public function getWGSE()
  425.     {
  426.         return $this->WGSE;
  427.     }
  428.     /**
  429.      * Set created
  430.      *
  431.      * @param \DateTime $created
  432.      *
  433.      * @return O
  434.      */
  435.     public function setCreated($created)
  436.     {
  437.         $this->created $created;
  438.         return $this;
  439.     }
  440.     /**
  441.      * Get created
  442.      *
  443.      * @return \DateTime
  444.      */
  445.     public function getCreated()
  446.     {
  447.         return $this->created;
  448.     }
  449.     /**
  450.      * Set edited
  451.      *
  452.      * @param \DateTime $edited
  453.      *
  454.      * @return O
  455.      */
  456.     public function setEdited($edited)
  457.     {
  458.         $this->edited $edited;
  459.         return $this;
  460.     }
  461.     /**
  462.      * Get edited
  463.      *
  464.      * @return \DateTime
  465.      */
  466.     public function getEdited()
  467.     {
  468.         return $this->edited;
  469.     }
  470.     
  471.     /**
  472.      * Set urad
  473.      *
  474.      * @param string $urad
  475.      *
  476.      * @return NoticeOznamenie
  477.      */
  478.     public function setUrad($urad)
  479.     {
  480.         $this->urad $urad;
  481.         return $this;
  482.     }
  483.     /**
  484.      * Get urad
  485.      *
  486.      * @return string
  487.      */
  488.     public function getUrad()
  489.     {
  490.         return $this->urad;
  491.     }
  492.     /**
  493.      * Set uradAdresa
  494.      *
  495.      * @param string $uradAdresa
  496.      *
  497.      * @return NoticeOznamenie
  498.      */
  499.     public function setUradAdresa($uradAdresa)
  500.     {
  501.         $this->uradAdresa $uradAdresa;
  502.         return $this;
  503.     }
  504.     /**
  505.      * Get uradAdresa
  506.      *
  507.      * @return string
  508.      */
  509.     public function getUradAdresa()
  510.     {
  511.         return $this->uradAdresa;
  512.     }
  513.     /**
  514.      * Set uradPracovisko
  515.      *
  516.      * @param string $uradPracovisko
  517.      *
  518.      * @return NoticeOznamenie
  519.      */
  520.     public function setUradPracovisko($uradPracovisko)
  521.     {
  522.         $this->uradPracovisko $uradPracovisko;
  523.         return $this;
  524.     }
  525.     /**
  526.      * Get uradPracovisko
  527.      *
  528.      * @return string
  529.      */
  530.     public function getUradPracovisko()
  531.     {
  532.         return $this->uradPracovisko;
  533.     }
  534.     /**
  535.      * Set datumPodania
  536.      *
  537.      * @param \DateTime $datumPodania
  538.      *
  539.      * @return NoticeOznamenie
  540.      */
  541.     public function setDatumPodania($datumPodania)
  542.     {
  543.         $this->datumPodania $datumPodania;
  544.         return $this;
  545.     }
  546.     /**
  547.      * Get datumPodania
  548.      *
  549.      * @return \DateTime
  550.      */
  551.     public function getDatumPodania()
  552.     {
  553.         return $this->datumPodania;
  554.     }
  555.     /**
  556.      * Set odNazov
  557.      *
  558.      * @param string $odNazov
  559.      *
  560.      * @return NoticeOznamenie
  561.      */
  562.     public function setOdNazov($odNazov)
  563.     {
  564.         $this->odNazov $odNazov;
  565.         return $this;
  566.     }
  567.     /**
  568.      * Get odNazov
  569.      *
  570.      * @return string
  571.      */
  572.     public function getOdNazov()
  573.     {
  574.         return $this->odNazov;
  575.     }
  576.     /**
  577.      * Set odKategoria
  578.      *
  579.      * @param string $odKategoria
  580.      *
  581.      * @return NoticeOznamenie
  582.      */
  583.     public function setOdKategoria($odKategoria)
  584.     {
  585.         $this->odKategoria $odKategoria;
  586.         return $this;
  587.     }
  588.     /**
  589.      * Get odKategoria
  590.      *
  591.      * @return string
  592.      */
  593.     public function getOdKategoria()
  594.     {
  595.         return $this->odKategoria;
  596.     }
  597.     /**
  598.      * Set odAdresa
  599.      *
  600.      * @param string $odAdresa
  601.      *
  602.      * @return NoticeOznamenie
  603.      */
  604.     public function setOdAdresa($odAdresa)
  605.     {
  606.         $this->odAdresa $odAdresa;
  607.         return $this;
  608.     }
  609.     /**
  610.      * Get odAdresa
  611.      *
  612.      * @return string
  613.      */
  614.     public function getOdAdresa()
  615.     {
  616.         return $this->odAdresa;
  617.     }
  618.     /**
  619.      * Set odMeno
  620.      *
  621.      * @param string $odMeno
  622.      *
  623.      * @return NoticeOznamenie
  624.      */
  625.     public function setOdMeno($odMeno)
  626.     {
  627.         $this->odMeno $odMeno;
  628.         return $this;
  629.     }
  630.     /**
  631.      * Get odMeno
  632.      *
  633.      * @return string
  634.      */
  635.     public function getOdMeno()
  636.     {
  637.         return $this->odMeno;
  638.     }
  639.     /**
  640.      * Set odFunkcia
  641.      *
  642.      * @param string $odFunkcia
  643.      *
  644.      * @return NoticeOznamenie
  645.      */
  646.     public function setOdFunkcia($odFunkcia)
  647.     {
  648.         $this->odFunkcia $odFunkcia;
  649.         return $this;
  650.     }
  651.     /**
  652.      * Get odFunkcia
  653.      *
  654.      * @return string
  655.      */
  656.     public function getOdFunkcia()
  657.     {
  658.         return $this->odFunkcia;
  659.     }
  660.     /**
  661.      * Set odTelefon
  662.      *
  663.      * @param string $odTelefon
  664.      *
  665.      * @return NoticeOznamenie
  666.      */
  667.     public function setOdTelefon($odTelefon)
  668.     {
  669.         $this->odTelefon $odTelefon;
  670.         return $this;
  671.     }
  672.     /**
  673.      * Get odTelefon
  674.      *
  675.      * @return string
  676.      */
  677.     public function getOdTelefon()
  678.     {
  679.         return $this->odTelefon;
  680.     }
  681.     /**
  682.      * Set odFax
  683.      *
  684.      * @param string $odFax
  685.      *
  686.      * @return NoticeOznamenie
  687.      */
  688.     public function setOdFax($odFax)
  689.     {
  690.         $this->odFax $odFax;
  691.         return $this;
  692.     }
  693.     /**
  694.      * Get odFax
  695.      *
  696.      * @return string
  697.      */
  698.     public function getOdFax()
  699.     {
  700.         return $this->odFax;
  701.     }
  702.     /**
  703.      * Set odEmail
  704.      *
  705.      * @param string $odEmail
  706.      *
  707.      * @return NoticeOznamenie
  708.      */
  709.     public function setOdEmail($odEmail)
  710.     {
  711.         $this->odEmail $odEmail;
  712.         return $this;
  713.     }
  714.     /**
  715.      * Get odEmail
  716.      *
  717.      * @return string
  718.      */
  719.     public function getOdEmail()
  720.     {
  721.         return $this->odEmail;
  722.     }
  723.     /**
  724.      * Set odVypMeno
  725.      *
  726.      * @param string $odVypMeno
  727.      *
  728.      * @return NoticeOznamenie
  729.      */
  730.     public function setOdVypMeno($odVypMeno)
  731.     {
  732.         $this->odVypMeno $odVypMeno;
  733.         return $this;
  734.     }
  735.     /**
  736.      * Get odVypMeno
  737.      *
  738.      * @return string
  739.      */
  740.     public function getOdVypMeno()
  741.     {
  742.         return $this->odVypMeno;
  743.     }
  744.     /**
  745.      * Set odVypFunkcia
  746.      *
  747.      * @param string $odVypFunkcia
  748.      *
  749.      * @return NoticeOznamenie
  750.      */
  751.     public function setOdVypFunkcia($odVypFunkcia)
  752.     {
  753.         $this->odVypFunkcia $odVypFunkcia;
  754.         return $this;
  755.     }
  756.     /**
  757.      * Get odVypFunkcia
  758.      *
  759.      * @return string
  760.      */
  761.     public function getOdVypFunkcia()
  762.     {
  763.         return $this->odVypFunkcia;
  764.     }
  765. }