Advertisement
Guest User

Untitled

a guest
Dec 16th, 2016
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppBundle\Entity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * Plachta
  7. *
  8. * @ORM\Table(name="plachta")
  9. * @ORM\Entity
  10. */
  11. class Plachta
  12. {
  13. /**
  14. * @var boolean
  15. *
  16. * @ORM\Column(name="archiwum", type="boolean", nullable=true)
  17. */
  18. private $archiwum;
  19. /**
  20. * @var string
  21. *
  22. * @ORM\Column(name="opis", type="string", length=255, nullable=true)
  23. */
  24. private $opis;
  25. /**
  26. * @var integer
  27. *
  28. * @ORM\Column(name="id_plachta", type="integer")
  29. * @ORM\Id
  30. * @ORM\GeneratedValue(strategy="IDENTITY")
  31. */
  32. private $idPlachta;
  33. /**
  34. * Set archiwum
  35. *
  36. * @param boolean $archiwum
  37. *
  38. * @return Plachta
  39. */
  40. public function setArchiwum($archiwum)
  41. {
  42. $this->archiwum = $archiwum;
  43. return $this;
  44. }
  45. /**
  46. * Get archiwum
  47. *
  48. * @return boolean
  49. */
  50. public function getArchiwum()
  51. {
  52. return $this->archiwum;
  53. }
  54. /**
  55. * Set opis
  56. *
  57. * @param string $opis
  58. *
  59. * @return Plachta
  60. */
  61. public function setOpis($opis)
  62. {
  63. $this->opis = $opis;
  64. return $this;
  65. }
  66. /**
  67. * Get opis
  68. *
  69. * @return string
  70. */
  71. public function getOpis()
  72. {
  73. return $this->opis;
  74. }
  75. /**
  76. * Get idPlachta
  77. *
  78. * @return integer
  79. */
  80. public function getIdPlachta()
  81. {
  82. return $this->idPlachta;
  83. }
  84. public function __toString()
  85. {
  86. // TODO: Implement __toString() method.
  87. return $this->getOpis();
  88. }
  89.  
  90.  
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement