src/Entity/NoticePodnet.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_podnet")
  7.  * @ORM\Entity() 
  8.  * @ORM\HasLifecycleCallbacks()
  9.  */
  10. class NoticePodnet {
  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="podnet") 
  19.      * @ORM\JoinColumn(name="notice_id", referencedColumnName="id")
  20.      */
  21.     protected $notice;
  22.     /**
  23.      * @ORM\Column(name="opis", type="text", length=65535, nullable=true)      
  24.      */
  25.     protected $opis;
  26.     /**
  27.      * @ORM\Column(name="vznik", type="datetime", nullable=true)      
  28.      */
  29.     protected $vznik;
  30.     /**
  31.      * @ORM\Column(name="WGSN", type="string", length=255, nullable=true)     
  32.      */
  33.     protected $WGSN;
  34.     /**
  35.      * @ORM\Column(name="WGSE", type="string", length=255, nullable=true)     
  36.      */
  37.     protected $WGSE;
  38.     /**
  39.      * @ORM\Column(name="poskodene_zdroje", type="string", length=2550, nullable=true)     
  40.      */
  41.     protected $poskodeneZdroje;
  42.     /**
  43.      * @ORM\Column(name="od_meno", type="string", length=255, nullable=true)     
  44.      */
  45.     protected $odNazov;
  46.     /**
  47.      * @ORM\Column(name="od_adresa", type="string", length=255, nullable=true)     
  48.      */
  49.     protected $odAdresa;
  50.     /**
  51.      * @ORM\Column(name="od_email", type="string", length=255, nullable=true)     
  52.      */
  53.     protected $odEmail;
  54.     /**
  55.      * @ORM\Column(name="od_telefon", type="string", length=255, nullable=true)     
  56.      */
  57.     protected $odTelefon;
  58.     /**
  59.      * @ORM\Column(name="urad", type="string", length=255, nullable=true)     
  60.      */
  61.     protected $urad;
  62.     /**
  63.      * @ORM\Column(name="urad_adresa", type="string", length=255, nullable=true)     
  64.      */
  65.     protected $uradAdresa;
  66.     
  67.     /**
  68.      * @ORM\Column(name="created", type="datetime")
  69.      */
  70.     protected $created;
  71.     /**
  72.      * @ORM\Column(name="edited", type="datetime")
  73.      */
  74.     protected $edited;
  75.     
  76.     /** 
  77.      * @ORM\PrePersist()
  78.      */
  79.     public function preCreated() {
  80.         $this->created = new \DateTime('now');
  81.     }
  82.     /** 
  83.      * @ORM\PrePersist()
  84.      * @ORM\PreUpdate() 
  85.      */
  86.     public function preEdited() {
  87.         $this->edited = new \DateTime('now');
  88.     }
  89.    
  90.     /**
  91.      * Get id
  92.      *
  93.      * @return integer
  94.      */
  95.     public function getId()
  96.     {
  97.         return $this->id;
  98.     }
  99.     /**
  100.      * Set opis
  101.      *
  102.      * @param string $opis
  103.      *
  104.      * @return NoticePodnet
  105.      */
  106.     public function setOpis($opis)
  107.     {
  108.         $this->opis $opis;
  109.         return $this;
  110.     }
  111.     /**
  112.      * Get opis
  113.      *
  114.      * @return string
  115.      */
  116.     public function getOpis()
  117.     {
  118.         return $this->opis;
  119.     }
  120.     /**
  121.      * Set vznik
  122.      *
  123.      * @param \DateTime $vznik
  124.      *
  125.      * @return NoticePodnet
  126.      */
  127.     public function setVznik($vznik)
  128.     {
  129.         $this->vznik $vznik;
  130.         return $this;
  131.     }
  132.     /**
  133.      * Get vznik
  134.      *
  135.      * @return \DateTime
  136.      */
  137.     public function getVznik()
  138.     {
  139.         return $this->vznik;
  140.     }
  141.     /**
  142.      * Set poskodeneZdroje
  143.      *
  144.      * @param string $poskodeneZdroje
  145.      *
  146.      * @return NoticePodnet
  147.      */
  148.     public function setPoskodeneZdroje($poskodeneZdroje)
  149.     {
  150.         $this->poskodeneZdroje json_encode($poskodeneZdroje);
  151.         return $this;
  152.     }
  153.     /**
  154.      * Get poskodeneZdroje
  155.      *
  156.      * @return string
  157.      */
  158.     public function getPoskodeneZdroje()
  159.     {
  160.         return json_decode($this->poskodeneZdrojetrue);
  161.     }
  162.     /**
  163.      * Set notice
  164.      *
  165.      * @param \App\Entity\Notice $notice
  166.      *
  167.      * @return NoticePodnet
  168.      */
  169.     public function setNotice(\App\Entity\Notice $notice null)
  170.     {
  171.         $this->notice $notice;
  172.         return $this;
  173.     }
  174.     /**
  175.      * Get notice
  176.      *
  177.      * @return \App\Entity\Notice
  178.      */
  179.     public function getNotice()
  180.     {
  181.         return $this->notice;
  182.     }
  183.     /**
  184.      * Set wGSN
  185.      *
  186.      * @param string $wGSN
  187.      *
  188.      * @return NoticePodnet
  189.      */
  190.     public function setWGSN($wGSN)
  191.     {
  192.         $this->WGSN $wGSN;
  193.         return $this;
  194.     }
  195.     /**
  196.      * Get wGSN
  197.      *
  198.      * @return string
  199.      */
  200.     public function getWGSN()
  201.     {
  202.         return $this->WGSN;
  203.     }
  204.     /**
  205.      * Set wGSE
  206.      *
  207.      * @param string $wGSE
  208.      *
  209.      * @return NoticePodnet
  210.      */
  211.     public function setWGSE($wGSE)
  212.     {
  213.         $this->WGSE $wGSE;
  214.         return $this;
  215.     }
  216.     /**
  217.      * Get wGSE
  218.      *
  219.      * @return string
  220.      */
  221.     public function getWGSE()
  222.     {
  223.         return $this->WGSE;
  224.     }
  225.     /**
  226.      * Set created
  227.      *
  228.      * @param \DateTime $created
  229.      *
  230.      * @return P
  231.      */
  232.     public function setCreated($created)
  233.     {
  234.         $this->created $created;
  235.         return $this;
  236.     }
  237.     /**
  238.      * Get created
  239.      *
  240.      * @return \DateTime
  241.      */
  242.     public function getCreated()
  243.     {
  244.         return $this->created;
  245.     }
  246.     /**
  247.      * Set edited
  248.      *
  249.      * @param \DateTime $edited
  250.      *
  251.      * @return P
  252.      */
  253.     public function setEdited($edited)
  254.     {
  255.         $this->edited $edited;
  256.         return $this;
  257.     }
  258.     /**
  259.      * Get edited
  260.      *
  261.      * @return \DateTime
  262.      */
  263.     public function getEdited()
  264.     {
  265.         return $this->edited;
  266.     }
  267.     
  268.     /**
  269.      * Set odNazov
  270.      *
  271.      * @param string $odNazov
  272.      *
  273.      * @return NoticePodnet
  274.      */
  275.     public function setOdNazov($odNazov)
  276.     {
  277.         $this->odNazov $odNazov;
  278.         return $this;
  279.     }
  280.     /**
  281.      * Get odNazov
  282.      *
  283.      * @return string
  284.      */
  285.     public function getOdNazov()
  286.     {
  287.         return $this->odNazov;
  288.     }
  289.     /**
  290.      * Set odAdresa
  291.      *
  292.      * @param string $odAdresa
  293.      *
  294.      * @return NoticePodnet
  295.      */
  296.     public function setOdAdresa($odAdresa)
  297.     {
  298.         $this->odAdresa $odAdresa;
  299.         return $this;
  300.     }
  301.     /**
  302.      * Get odAdresa
  303.      *
  304.      * @return string
  305.      */
  306.     public function getOdAdresa()
  307.     {
  308.         return $this->odAdresa;
  309.     }
  310.     /**
  311.      * Set odEmail
  312.      *
  313.      * @param string $odEmail
  314.      *
  315.      * @return NoticePodnet
  316.      */
  317.     public function setOdEmail($odEmail)
  318.     {
  319.         $this->odEmail $odEmail;
  320.         return $this;
  321.     }
  322.     /**
  323.      * Get odEmail
  324.      *
  325.      * @return string
  326.      */
  327.     public function getOdEmail()
  328.     {
  329.         return $this->odEmail;
  330.     }
  331.     /**
  332.      * Set odTelefon
  333.      *
  334.      * @param string $odTelefon
  335.      *
  336.      * @return NoticePodnet
  337.      */
  338.     public function setOdTelefon($odTelefon)
  339.     {
  340.         $this->odTelefon $odTelefon;
  341.         return $this;
  342.     }
  343.     /**
  344.      * Get odTelefon
  345.      *
  346.      * @return string
  347.      */
  348.     public function getOdTelefon()
  349.     {
  350.         return $this->odTelefon;
  351.     }
  352.     /**
  353.      * Set urad
  354.      *
  355.      * @param string $urad
  356.      *
  357.      * @return NoticePodnet
  358.      */
  359.     public function setUrad($urad)
  360.     {
  361.         $this->urad $urad;
  362.         return $this;
  363.     }
  364.     /**
  365.      * Get urad
  366.      *
  367.      * @return string
  368.      */
  369.     public function getUrad()
  370.     {
  371.         return $this->urad;
  372.     }
  373.     /**
  374.      * Set uradAdresa
  375.      *
  376.      * @param string $uradAdresa
  377.      *
  378.      * @return NoticePodnet
  379.      */
  380.     public function setUradAdresa($uradAdresa)
  381.     {
  382.         $this->uradAdresa $uradAdresa;
  383.         return $this;
  384.     }
  385.     /**
  386.      * Get uradAdresa
  387.      *
  388.      * @return string
  389.      */
  390.     public function getUradAdresa()
  391.     {
  392.         return $this->uradAdresa;
  393.     }
  394. }