src/Entity/Loc.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Entity\Notice;
  5. use App\Entity\Skoda;
  6. /** 
  7.  * @ORM\Table(name="es_loc")
  8.  * @ORM\Entity() 
  9.  * @ORM\HasLifecycleCallbacks()
  10.  */
  11. class Loc {
  12.     /** 
  13.      * @ORM\Column(name="id", type="integer")     
  14.      * @ORM\Id     
  15.      * @ORM\GeneratedValue(strategy="AUTO")     
  16.      */
  17.     protected $id;
  18.     /**
  19.      * Many Locs have one (the same) Notice
  20.      * @ORM\ManyToOne(targetEntity="Notice", inversedBy="locs")
  21.      * @ORM\JoinColumn(name="notice_id", referencedColumnName="id")
  22.      */
  23.     private $notice;
  24.     /**
  25.      * Many locs have one (the same) Skoda
  26.      * @ORM\ManyToOne(targetEntity="Skoda", inversedBy="locs")
  27.      * @ORM\JoinColumn(name="skoda_id", referencedColumnName="id")
  28.      */
  29.     private $skoda;
  30.     /** 
  31.      * @ORM\Column(name="stat", type="string", length=255, nullable=true)     
  32.      */
  33.     protected $stat;
  34.     
  35.     /** 
  36.      * @ORM\Column(name="kraj", type="string", length=255, nullable=true)     
  37.      */
  38.     protected $kraj;
  39.     
  40.     /** 
  41.      * @ORM\Column(name="okres", type="string", length=255, nullable=true)     
  42.      */
  43.     protected $okres;
  44.     
  45.     /** 
  46.      * @ORM\Column(name="zuj", type="string", length=255, nullable=true)     
  47.      */
  48.     protected $zuj;
  49.     
  50.     /** 
  51.      * @ORM\Column(name="lokalita", type="string", length=255, nullable=true)     
  52.      */
  53.     protected $lokalita;
  54.     
  55.     
  56.     /**
  57.      * @param notice $notice
  58.      * @return Notice
  59.      */
  60.     public function setNotice(Notice $notice null) {
  61.         $this->notice $notice;
  62.         return $this;
  63.     }
  64.     /**
  65.      * @return Notice
  66.      */
  67.     public function getNotice() {
  68.         return $this->notice;
  69.     }
  70.     /**
  71.      * Get id
  72.      *
  73.      * @return integer
  74.      */
  75.     public function getId() {
  76.         return $this->id;
  77.     }
  78.     /**
  79.      * Set stat
  80.      *
  81.      * @param string $stat
  82.      *
  83.      * @return Loc
  84.      */
  85.     public function setStat($stat)
  86.     {
  87.         $this->stat $stat;
  88.         return $this;
  89.     }
  90.     /**
  91.      * Get stat
  92.      *
  93.      * @return string
  94.      */
  95.     public function getStat()
  96.     {
  97.         return $this->stat;
  98.     }
  99.     /**
  100.      * Set kraj
  101.      *
  102.      * @param string $kraj
  103.      *
  104.      * @return Loc
  105.      */
  106.     public function setKraj($kraj)
  107.     {
  108.         $this->kraj $kraj;
  109.         return $this;
  110.     }
  111.     /**
  112.      * Get kraj
  113.      *
  114.      * @return string
  115.      */
  116.     public function getKraj()
  117.     {
  118.         return $this->kraj;
  119.     }
  120.     /**
  121.      * Set okres
  122.      *
  123.      * @param string $okres
  124.      *
  125.      * @return Loc
  126.      */
  127.     public function setOkres($okres)
  128.     {
  129.         $this->okres $okres;
  130.         return $this;
  131.     }
  132.     /**
  133.      * Get okres
  134.      *
  135.      * @return string
  136.      */
  137.     public function getOkres()
  138.     {
  139.         return $this->okres;
  140.     }
  141.     /**
  142.      * Set zuj
  143.      *
  144.      * @param string $zuj
  145.      *
  146.      * @return Loc
  147.      */
  148.     public function setZuj($zuj)
  149.     {
  150.         $this->zuj $zuj;
  151.         return $this;
  152.     }
  153.     /**
  154.      * Get zuj
  155.      *
  156.      * @return string
  157.      */
  158.     public function getZuj()
  159.     {
  160.         return $this->zuj;
  161.     }
  162.     /**
  163.      * Set lokalita
  164.      *
  165.      * @param string $lokalita
  166.      *
  167.      * @return Loc
  168.      */
  169.     public function setLokalita($lokalita)
  170.     {
  171.         $this->lokalita $lokalita;
  172.         return $this;
  173.     }
  174.     /**
  175.      * Get lokalita
  176.      *
  177.      * @return string
  178.      */
  179.     public function getLokalita()
  180.     {
  181.         return $this->lokalita;
  182.     }
  183.     /**
  184.      * Set skoda
  185.      *
  186.      * @param \App\Entity\Skoda $skoda
  187.      *
  188.      * @return Loc
  189.      */
  190.     public function setSkoda(\App\Entity\Skoda $skoda null)
  191.     {
  192.         $this->skoda $skoda;
  193.         return $this;
  194.     }
  195.     /**
  196.      * Get skoda
  197.      *
  198.      * @return \App\Entity\Skoda
  199.      */
  200.     public function getSkoda()
  201.     {
  202.         return $this->skoda;
  203.     }
  204. }