|
- <?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=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 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;
- }
-
- }
|