bundles/ADAS/eBudzetBundle/Entity/SysJednostki.php line 10

Open in your IDE?
  1. <?php
  2. namespace ADAS\eBudzetBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SysJednostki
  6.  */
  7. class SysJednostki
  8. {
  9.     /**
  10.      * @var integer
  11.      */
  12.     private $numerjednostki;
  13.     /**
  14.      * @var string
  15.      */
  16.     private $nazwa;
  17.     /**
  18.      * @var string
  19.      */
  20.     private $kod;
  21.     /**
  22.      * @var integer
  23.      */
  24.     private $zalozyl;
  25.     /**
  26.      * @var \DateTime
  27.      */
  28.     private $datazalozenia;
  29.     /**
  30.      * @var integer
  31.      */
  32.     private $aktualizowal;
  33.     /**
  34.      * @var \DateTime
  35.      */
  36.     private $dataaktualizacji;
  37.     /**
  38.      * @var integer
  39.      */
  40.     private $idjednostki;
  41.     /**
  42.      * @var integer
  43.      */
  44.     private $zrodlodanych;
  45.     /**
  46.      * @var \DateTime
  47.      */
  48.     private $datado;
  49.     
  50.     
  51.     /**
  52.      * Set numerjednostki
  53.      *
  54.      * @param integer $numerjednostki
  55.      * @return SysJednostki
  56.      */
  57.     public function setNumerjednostki($numerjednostki)
  58.     {
  59.         $this->numerjednostki = $numerjednostki;
  60.         return $this;
  61.     }
  62.     /**
  63.      * Get numerjednostki
  64.      *
  65.      * @return integer 
  66.      */
  67.     public function getNumerjednostki()
  68.     {
  69.         return $this->numerjednostki;
  70.     }
  71.     /**
  72.      * Set nazwa
  73.      *
  74.      * @param string $nazwa
  75.      * @return SysJednostki
  76.      */
  77.     public function setNazwa($nazwa)
  78.     {
  79.         $this->nazwa = $nazwa;
  80.         return $this;
  81.     }
  82.     /**
  83.      * Get nazwa
  84.      *
  85.      * @return string 
  86.      */
  87.     public function getNazwa()
  88.     {
  89.         return $this->nazwa;
  90.     }
  91.     /**
  92.      * Set kod
  93.      *
  94.      * @param string $kod
  95.      * @return SysJednostki
  96.      */
  97.     public function setKod($kod)
  98.     {
  99.         $this->kod = $kod;
  100.         return $this;
  101.     }
  102.     /**
  103.      * Get kod
  104.      *
  105.      * @return string 
  106.      */
  107.     public function getKod()
  108.     {
  109.         return $this->kod;
  110.     }
  111.     /**
  112.      * Set zalozyl
  113.      *
  114.      * @param integer $zalozyl
  115.      * @return SysJednostki
  116.      */
  117.     public function setZalozyl($zalozyl)
  118.     {
  119.         $this->zalozyl = $zalozyl;
  120.         return $this;
  121.     }
  122.     /**
  123.      * Get zalozyl
  124.      *
  125.      * @return integer 
  126.      */
  127.     public function getZalozyl()
  128.     {
  129.         return $this->zalozyl;
  130.     }
  131.     /**
  132.      * Set datazalozenia
  133.      *
  134.      * @param \DateTime $datazalozenia
  135.      * @return SysJednostki
  136.      */
  137.     public function setDatazalozenia($datazalozenia)
  138.     {
  139.         $this->datazalozenia = $datazalozenia;
  140.         return $this;
  141.     }
  142.     /**
  143.      * Get datazalozenia
  144.      *
  145.      * @return \DateTime 
  146.      */
  147.     public function getDatazalozenia()
  148.     {
  149.         return $this->datazalozenia;
  150.     }
  151.     /**
  152.      * Set aktualizowal
  153.      *
  154.      * @param integer $aktualizowal
  155.      * @return SysJednostki
  156.      */
  157.     public function setAktualizowal($aktualizowal)
  158.     {
  159.         $this->aktualizowal = $aktualizowal;
  160.         return $this;
  161.     }
  162.     /**
  163.      * Get aktualizowal
  164.      *
  165.      * @return integer 
  166.      */
  167.     public function getAktualizowal()
  168.     {
  169.         return $this->aktualizowal;
  170.     }
  171.     /**
  172.      * Set dataaktualizacji
  173.      *
  174.      * @param \DateTime $dataaktualizacji
  175.      * @return SysJednostki
  176.      */
  177.     public function setDataaktualizacji($dataaktualizacji)
  178.     {
  179.         $this->dataaktualizacji = $dataaktualizacji;
  180.         return $this;
  181.     }
  182.     /**
  183.      * Get dataaktualizacji
  184.      *
  185.      * @return \DateTime 
  186.      */
  187.     public function getDataaktualizacji()
  188.     {
  189.         return $this->dataaktualizacji;
  190.     }
  191.     /**
  192.      * Get idjednostki
  193.      *
  194.      * @return integer 
  195.      */
  196.     public function getIdjednostki()
  197.     {
  198.         return $this->idjednostki;
  199.     }
  200.     /**
  201.      * Set idjednostki
  202.      *
  203.      * @return self
  204.      */
  205.     public function setIdjednostki(int $idJednostki)
  206.     {
  207.         $this->idjednostki = $idJednostki;
  208.         return $this;
  209.     }
  210.     /**
  211.      * Set zrodlodanych
  212.      *
  213.      * @param integer $zrodlodanych
  214.      * @return SysJednostki
  215.      */
  216.     public function setZrodlodanych($zrodlodanych )
  217.     {
  218.         $this->zrodlodanych = $zrodlodanych;
  219.         return $this;
  220.     }
  221.     /**
  222.      * Get zrodlodanych
  223.      *
  224.      * @return integer 
  225.      */
  226.     public function getZrodlodanych()
  227.     {
  228.         return $this->zrodlodanych;
  229.     }
  230.     
  231.     /**
  232.      * Set datado
  233.      *
  234.      * @param \DateTime $datado
  235.      * @return SysJednostki
  236.      */
  237.     public function setDatado($datado)
  238.     {
  239.         $this->datado = $datado;
  240.         
  241.         return $this;
  242.     }
  243.     
  244.     /**
  245.      * Get datado
  246.      *
  247.      * @return \DateTime
  248.      */
  249.     public function getdatado()
  250.     {
  251.         return $this->datado;
  252.     }
  253.     
  254.     public function __toString()
  255.     {
  256.         return (string)$this->numerjednostki . " - " .$this->nazwa;
  257.     }
  258. }