Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Przedmiot
- *
- * @ORM\Table(name="przedmiot", indexes={@ORM\Index(name="fk_przedmiot_studia_typ1_idx", columns={"id_studia"}), @ORM\Index(name="fk_przedmiot_semestr1_idx", columns={"id_semestr"}), @ORM\Index(name="fk_przedmiot_plachta1_idx", columns={"id_plachta"})})
- * @ORM\Entity
- */
- class Przedmiot
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="licz_godz_wyk", type="integer", nullable=true)
- */
- private $liczGodzWyk;
- /**
- * @var integer
- *
- * @ORM\Column(name="licz_godz_lab", type="integer", nullable=true)
- */
- private $liczGodzLab;
- /**
- * @var integer
- *
- * @ORM\Column(name="licz_godz_cw", type="integer", nullable=true)
- */
- private $liczGodzCw;
- /**
- * @var integer
- *
- * @ORM\Column(name="licz_grup_wyk", type="integer", nullable=true)
- */
- private $liczGrupWyk;
- /**
- * @var integer
- *
- * @ORM\Column(name="licz_grup_lab", type="integer", nullable=true)
- */
- private $liczGrupLab;
- /**
- * @var integer
- *
- * @ORM\Column(name="licz_grup_cw", type="integer", nullable=true)
- */
- private $liczGrupCw;
- /**
- * @var boolean
- *
- * @ORM\Column(name="archiwum", type="boolean", nullable=true)
- */
- private $archiwum;
- /**
- * @var string
- *
- * @ORM\Column(name="opis", type="string", length=255, nullable=true)
- */
- private $opis;
- /**
- * @var string
- *
- * @ORM\Column(name="nazwa", type="string", length=255, nullable=true)
- */
- private $nazwa;
- /**
- * @var integer
- *
- * @ORM\Column(name="id_przedmiot", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="IDENTITY")
- */
- private $idPrzedmiot;
- /**
- * @var \AppBundle\Entity\Semestr
- *
- * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Semestr")
- * @ORM\JoinColumns({
- * @ORM\JoinColumn(name="id_semestr", referencedColumnName="id_semestr")
- * })
- */
- private $idSemestr;
- /**
- * @var \AppBundle\Entity\StudiaTyp
- *
- * @ORM\ManyToOne(targetEntity="AppBundle\Entity\StudiaTyp")
- * @ORM\JoinColumns({
- * @ORM\JoinColumn(name="id_studia", referencedColumnName="id_studia")
- * })
- */
- private $idStudia;
- /**
- * @var \AppBundle\Entity\Plachta
- *
- * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Plachta")
- * @ORM\JoinColumns({
- * @ORM\JoinColumn(name="id_plachta", referencedColumnName="id_plachta")
- * })
- */
- private $idPlachta;
- /**
- * Set liczGodzWyk
- *
- * @param integer $liczGodzWyk
- *
- * @return Przedmiot
- */
- public function setLiczGodzWyk($liczGodzWyk)
- {
- $this->liczGodzWyk = $liczGodzWyk;
- return $this;
- }
- /**
- * Get liczGodzWyk
- *
- * @return integer
- */
- public function getLiczGodzWyk()
- {
- return $this->liczGodzWyk;
- }
- /**
- * Set liczGodzLab
- *
- * @param integer $liczGodzLab
- *
- * @return Przedmiot
- */
- public function setLiczGodzLab($liczGodzLab)
- {
- $this->liczGodzLab = $liczGodzLab;
- return $this;
- }
- /**
- * Get liczGodzLab
- *
- * @return integer
- */
- public function getLiczGodzLab()
- {
- return $this->liczGodzLab;
- }
- /**
- * Set liczGodzCw
- *
- * @param integer $liczGodzCw
- *
- * @return Przedmiot
- */
- public function setLiczGodzCw($liczGodzCw)
- {
- $this->liczGodzCw = $liczGodzCw;
- return $this;
- }
- /**
- * Get liczGodzCw
- *
- * @return integer
- */
- public function getLiczGodzCw()
- {
- return $this->liczGodzCw;
- }
- /**
- * Set liczGrupWyk
- *
- * @param integer $liczGrupWyk
- *
- * @return Przedmiot
- */
- public function setLiczGrupWyk($liczGrupWyk)
- {
- $this->liczGrupWyk = $liczGrupWyk;
- return $this;
- }
- /**
- * Get liczGrupWyk
- *
- * @return integer
- */
- public function getLiczGrupWyk()
- {
- return $this->liczGrupWyk;
- }
- /**
- * Set liczGrupLab
- *
- * @param integer $liczGrupLab
- *
- * @return Przedmiot
- */
- public function setLiczGrupLab($liczGrupLab)
- {
- $this->liczGrupLab = $liczGrupLab;
- return $this;
- }
- /**
- * Get liczGrupLab
- *
- * @return integer
- */
- public function getLiczGrupLab()
- {
- return $this->liczGrupLab;
- }
- /**
- * Set liczGrupCw
- *
- * @param integer $liczGrupCw
- *
- * @return Przedmiot
- */
- public function setLiczGrupCw($liczGrupCw)
- {
- $this->liczGrupCw = $liczGrupCw;
- return $this;
- }
- /**
- * Get liczGrupCw
- *
- * @return integer
- */
- public function getLiczGrupCw()
- {
- return $this->liczGrupCw;
- }
- /**
- * Set archiwum
- *
- * @param boolean $archiwum
- *
- * @return Przedmiot
- */
- public function setArchiwum($archiwum)
- {
- $this->archiwum = $archiwum;
- return $this;
- }
- /**
- * Get archiwum
- *
- * @return boolean
- */
- public function getArchiwum()
- {
- return $this->archiwum;
- }
- /**
- * Set opis
- *
- * @param string $opis
- *
- * @return Przedmiot
- */
- public function setOpis($opis)
- {
- $this->opis = $opis;
- return $this;
- }
- /**
- * Get opis
- *
- * @return string
- */
- public function getOpis()
- {
- return $this->opis;
- }
- /**
- * Set nazwa
- *
- * @param string nazwa
- *
- * @return Przedmiot
- */
- public function setNazwa($nazwa)
- {
- $this->nazwa = $nazwa;
- return $this;
- }
- /**
- * Get nazwa
- *
- * @return string
- */
- public function getNazwa()
- {
- return $this->nazwa;
- }
- /**
- * Get idPrzedmiot
- *
- * @return integer
- */
- public function getIdPrzedmiot()
- {
- return $this->idPrzedmiot;
- }
- /**
- * Set idSemestr
- *
- * @param \AppBundle\Entity\Semestr $idSemestr
- *
- * @return Przedmiot
- */
- public function setIdSemestr(\AppBundle\Entity\Semestr $idSemestr = null)
- {
- $this->idSemestr = $idSemestr;
- return $this;
- }
- /**
- * Get idSemestr
- *
- * @return \AppBundle\Entity\Semestr
- */
- public function getIdSemestr()
- {
- return $this->idSemestr;
- }
- /**
- * Set idStudia
- *
- * @param \AppBundle\Entity\StudiaTyp $idStudia
- *
- * @return Przedmiot
- */
- public function setIdStudia(\AppBundle\Entity\StudiaTyp $idStudia = null)
- {
- $this->idStudia = $idStudia;
- return $this;
- }
- /**
- * Get idStudia
- *
- * @return \AppBundle\Entity\StudiaTyp
- */
- public function getIdStudia()
- {
- return $this->idStudia;
- }
- /**
- * Set idPlachta
- *
- * @param \AppBundle\Entity\Plachta $idPlachta
- *
- * @return Przedmiot
- */
- public function setIdPlachta(\AppBundle\Entity\Plachta $idPlachta = null)
- {
- $this->idPlachta = $idPlachta;
- return $this;
- }
- /**
- * Get idPlachta
- *
- * @return \AppBundle\Entity\Plachta
- */
- public function getIdPlachta()
- {
- return $this->idPlachta;
- }
- public function __toString()
- {
- // TODO: Implement __toString() method.
- return $this->getNazwa();
- }
- }
Add Comment
Please, Sign In to add comment