Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Plachta
- *
- * @ORM\Table(name="plachta")
- * @ORM\Entity
- */
- class Plachta
- {
- /**
- * @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 integer
- *
- * @ORM\Column(name="id_plachta", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="IDENTITY")
- */
- private $idPlachta;
- /**
- * Set archiwum
- *
- * @param boolean $archiwum
- *
- * @return Plachta
- */
- 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 Plachta
- */
- public function setOpis($opis)
- {
- $this->opis = $opis;
- return $this;
- }
- /**
- * Get opis
- *
- * @return string
- */
- public function getOpis()
- {
- return $this->opis;
- }
- /**
- * Get idPlachta
- *
- * @return integer
- */
- public function getIdPlachta()
- {
- return $this->idPlachta;
- }
- public function __toString()
- {
- // TODO: Implement __toString() method.
- return $this->getOpis();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement