No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

155 líneas
2.8KB

  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=255, nullable=true)
  24. */
  25. protected $organization;
  26. /**
  27. * @ORM\Column(type="string", length=20, nullable=true)
  28. */
  29. protected $city;
  30. /**
  31. * @ORM\Column(type="string", length=20, nullable=true)
  32. */
  33. protected $phone;
  34. /**
  35. * @ORM\Column(type="string", length=180)
  36. */
  37. protected $email;
  38. /**
  39. * @ORM\Column(type="boolean")
  40. */
  41. protected $isAnimator = false;
  42. public function __toString()
  43. {
  44. return $this->getLastname().' '.$this->getFirstname();
  45. }
  46. public function getWorkshop(): ?WorkshopInterface
  47. {
  48. return $this->workshop;
  49. }
  50. public function setWorkshop(WorkshopInterface $workshop): self
  51. {
  52. $this->workshop = $workshop;
  53. return $this;
  54. }
  55. public function getFirstname(): ?string
  56. {
  57. return $this->firstname;
  58. }
  59. public function setFirstname(?string $firstname): self
  60. {
  61. $this->firstname = $firstname;
  62. return $this;
  63. }
  64. public function getLastname(): ?string
  65. {
  66. return $this->lastname;
  67. }
  68. public function setLastname(?string $lastname): self
  69. {
  70. $this->lastname = $lastname;
  71. return $this;
  72. }
  73. public function getOrganization(): ?string
  74. {
  75. return $this->organization;
  76. }
  77. public function setOrganization(?string $organization): self
  78. {
  79. $this->organization = $organization;
  80. return $this;
  81. }
  82. public function getCity(): ?string
  83. {
  84. return $this->city;
  85. }
  86. public function setCity(?string $city): self
  87. {
  88. $this->city = $city;
  89. return $this;
  90. }
  91. public function getEmail(): ?string
  92. {
  93. return $this->email;
  94. }
  95. public function setEmail(string $email): self
  96. {
  97. $this->email = $email;
  98. return $this;
  99. }
  100. public function getPhone(): ?string
  101. {
  102. return $this->phone;
  103. }
  104. public function setPhone(?string $phone): self
  105. {
  106. $this->phone = $phone;
  107. return $this;
  108. }
  109. public function isAnimator(): bool
  110. {
  111. return $this->isAnimator;
  112. }
  113. public function setIsAnimator(bool $isAnimator): self
  114. {
  115. $this->isAnimator = $isAnimator;
  116. return $this;
  117. }
  118. }