|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <?php
-
- namespace Lc\PietroBundle\Model\Workshop;
-
- use Doctrine\ORM\Mapping as ORM;
- use Lc\SovBundle\Doctrine\EntityInterface;
-
- /**
- * @ORM\MappedSuperclass()
- */
- abstract class Entry implements EntryInterface, EntityInterface
- {
- /**
- * @ORM\ManyToOne(targetEntity="Lc\PietroBundle\Model\Workshop\WorkshopInterface", inversedBy="entries")
- */
- protected $workshop;
-
- /**
- * @ORM\Column(type="string", length=255, nullable=true)
- */
- protected $lastname;
-
- /**
- * @ORM\Column(type="string", length=255, nullable=true)
- */
- protected $firstname;
-
- /**
- * @ORM\Column(type="string", length=255, nullable=true)
- */
- protected $organization;
-
- /**
- * @ORM\Column(type="string", length=20, nullable=true)
- */
- protected $city;
-
- /**
- * @ORM\Column(type="string", length=20, nullable=true)
- */
- protected $phone;
-
- /**
- * @ORM\Column(type="string", length=180)
- */
- protected $email;
-
- /**
- * @ORM\Column(type="boolean")
- */
- protected $isAnimator = false;
-
- public function __toString()
- {
- return $this->getLastname().' '.$this->getFirstname();
- }
-
- public function getWorkshop(): ?WorkshopInterface
- {
- return $this->workshop;
- }
-
- public function setWorkshop(WorkshopInterface $workshop): self
- {
- $this->workshop = $workshop;
-
- return $this;
- }
-
- public function getFirstname(): ?string
- {
- return $this->firstname;
- }
-
- public function setFirstname(?string $firstname): self
- {
- $this->firstname = $firstname;
-
- return $this;
- }
-
- public function getLastname(): ?string
- {
- return $this->lastname;
- }
-
- public function setLastname(?string $lastname): self
- {
- $this->lastname = $lastname;
-
- return $this;
- }
-
- public function getOrganization(): ?string
- {
- return $this->organization;
- }
-
- public function setOrganization(?string $organization): self
- {
- $this->organization = $organization;
-
- return $this;
- }
-
- public function getCity(): ?string
- {
- return $this->city;
- }
-
- public function setCity(?string $city): self
- {
- $this->city = $city;
-
- return $this;
- }
-
- public function getEmail(): ?string
- {
- return $this->email;
- }
-
- public function setEmail(string $email): self
- {
- $this->email = $email;
-
- return $this;
- }
-
- public function getPhone(): ?string
- {
- return $this->phone;
- }
-
- public function setPhone(?string $phone): self
- {
- $this->phone = $phone;
-
- return $this;
- }
-
- public function isAnimator(): bool
- {
- return $this->isAnimator;
- }
-
- public function setIsAnimator(bool $isAnimator): self
- {
- $this->isAnimator = $isAnimator;
-
- return $this;
- }
-
- }
|