src/Entity/Donation.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity()
  6. */
  7. class Donation
  8. {
  9. /**
  10. * @ORM\Id
  11. * @ORM\GeneratedValue
  12. * @ORM\Column(type="integer")
  13. */
  14. private $id;
  15. /**
  16. * @ORM\Column(type="string", length=255)
  17. */
  18. private $name;
  19. /**
  20. * @ORM\Column(type="string", length=255)
  21. */
  22. private $email;
  23. /**
  24. * @ORM\Column(type="float")
  25. */
  26. private $amount;
  27. /**
  28. * @ORM\Column(type="boolean")
  29. */
  30. private $isAnonymous;
  31. /**
  32. * @ORM\Column(type="datetime")
  33. */
  34. private $createdAt;
  35. /**
  36. * @ORM\ManyToOne(targetEntity="App\Entity\Project", inversedBy="donations")
  37. */
  38. private $project;
  39. /**
  40. * @ORM\ManyToOne(targetEntity="App\Entity\Member", inversedBy="donations")
  41. */
  42. private $member;
  43. public function getId(): ?int { return $this->id; }
  44. public function getName(): ?string { return $this->name; }
  45. public function setName(string $name): self { $this->name = $name; return $this; }
  46. public function getEmail(): ?string { return $this->email; }
  47. public function setEmail(string $email): self { $this->email = $email; return $this; }
  48. public function getAmount(): ?float { return $this->amount; }
  49. public function setAmount(float $amount): self { $this->amount = $amount; return $this; }
  50. public function getIsAnonymous(): ?bool { return $this->isAnonymous; }
  51. public function setIsAnonymous(bool $isAnonymous): self { $this->isAnonymous = $isAnonymous; return $this; }
  52. public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; }
  53. public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; }
  54. public function getProject(): ?Project { return $this->project; }
  55. public function setProject(?Project $project): self { $this->project = $project; return $this; }
  56. public function getMember(): ?Member { return $this->member; }
  57. public function setMember(?Member $member): self { $this->member = $member; return $this; }
  58. }