Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

138 lines
2.5KB

  1. <?php
  2. namespace Lc\PietroBundle\Model\Workshop;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\SovBundle\Doctrine\EntityInterface;
  5. /**
  6. * @ORM\MappedSuperclass()
  7. */
  8. abstract class Entry implements EntryInterface, EntityInterface
  9. {
  10. /**
  11. * @ORM\ManyToOne(targetEntity="Lc\PietroBundle\Model\Workshop\WorkshopInterface", inversedBy="entries")
  12. */
  13. protected $workshop;
  14. /**
  15. * @ORM\Column(type="string", length=255, nullable=true)
  16. */
  17. protected $lastname;
  18. /**
  19. * @ORM\Column(type="string", length=255, nullable=true)
  20. */
  21. protected $firstname;
  22. /**
  23. * @ORM\Column(type="string", length=20, nullable=true)
  24. */
  25. protected $city;
  26. /**
  27. * @ORM\Column(type="string", length=20, nullable=true)
  28. */
  29. protected $phone;
  30. /**
  31. * @ORM\Column(type="string", length=180)
  32. */
  33. protected $email;
  34. /**
  35. * @ORM\Column(type="boolean")
  36. */
  37. protected $isAnimator = false;
  38. public function __toString()
  39. {
  40. return $this->getLastname().' '.$this->getFirstname();
  41. }
  42. public function getWorkshop(): ?WorkshopInterface
  43. {
  44. return $this->workshop;
  45. }
  46. public function setWorkshop(WorkshopInterface $workshop): self
  47. {
  48. $this->workshop = $workshop;
  49. return $this;
  50. }
  51. public function getFirstname(): ?string
  52. {
  53. return $this->firstname;
  54. }
  55. public function setFirstname(?string $firstname): self
  56. {
  57. $this->firstname = $firstname;
  58. return $this;
  59. }
  60. public function getLastname(): ?string
  61. {
  62. return $this->lastname;
  63. }
  64. public function setLastname(?string $lastname): self
  65. {
  66. $this->lastname = $lastname;
  67. return $this;
  68. }
  69. public function getCity(): ?string
  70. {
  71. return $this->city;
  72. }
  73. public function setCity(?string $city): self
  74. {
  75. $this->city = $city;
  76. return $this;
  77. }
  78. public function getEmail(): ?string
  79. {
  80. return $this->email;
  81. }
  82. public function setEmail(string $email): self
  83. {
  84. $this->email = $email;
  85. return $this;
  86. }
  87. public function getPhone(): ?string
  88. {
  89. return $this->phone;
  90. }
  91. public function setPhone(?string $phone): self
  92. {
  93. $this->phone = $phone;
  94. return $this;
  95. }
  96. public function isAnimator(): bool
  97. {
  98. return $this->isAnimator;
  99. }
  100. public function setIsAnimator(bool $isAnimator): self
  101. {
  102. $this->isAnimator = $isAnimator;
  103. return $this;
  104. }
  105. }