src/Entity/Testimonial.php line 23

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\LinkTrait;
  4. use App\Entity\Traits\MetaTrait;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use App\Entity\Traits\ActiveTrait;
  7. use App\Entity\Traits\DeleteTrait;
  8. use App\Entity\Traits\SortOrderTrait;
  9. use App\Entity\Traits\TranslateTrait;
  10. use Gedmo\Mapping\Annotation as Gedmo;
  11. use App\Entity\Traits\ImageUploadTrait;
  12. use App\Repository\TestimonialRepository;
  13. use App\Entity\Traits\TitleAndContentTrait;
  14. use App\Entity\Interfaces\DefaultLinkedEntity;
  15. use Gedmo\Timestampable\Traits\TimestampableEntity;
  16. /**
  17. * @Gedmo\Loggable
  18. */
  19. #[ORM\Entity(repositoryClass: TestimonialRepository::class)]
  20. class Testimonial implements DefaultLinkedEntity
  21. {
  22. use TitleAndContentTrait;
  23. use LinkTrait;
  24. use MetaTrait;
  25. use ImageUploadTrait;
  26. use ActiveTrait;
  27. use SortOrderTrait;
  28. use DeleteTrait;
  29. use TimestampableEntity;
  30. use TranslateTrait;
  31. #[ORM\Id]
  32. #[ORM\GeneratedValue]
  33. #[ORM\Column(type:"integer")]
  34. private $id;
  35. #[ORM\Column(type: 'string', length: 255)]
  36. private $clientName;
  37. #[ORM\Column(type: 'string', length: 255)]
  38. private $attestant;
  39. #[ORM\Column(type: 'string', length: 255)]
  40. private $jobTitle;
  41. #[ORM\Column(type: 'boolean')]
  42. private bool $featured = false;
  43. public function getId(): ?int
  44. {
  45. return $this->id;
  46. }
  47. public function getClientName(): ?string
  48. {
  49. return $this->clientName;
  50. }
  51. public function setClientName(string $clientName): self
  52. {
  53. $this->clientName = $clientName;
  54. return $this;
  55. }
  56. public function getAttestant(): ?string
  57. {
  58. return $this->attestant;
  59. }
  60. public function setAttestant(string $attestant): self
  61. {
  62. $this->attestant = $attestant;
  63. return $this;
  64. }
  65. public function getJobTitle(): ?string
  66. {
  67. return $this->jobTitle;
  68. }
  69. public function setJobTitle(string $jobTitle): self
  70. {
  71. $this->jobTitle = $jobTitle;
  72. return $this;
  73. }
  74. public function getFeatured(): ?bool
  75. {
  76. return $this->featured;
  77. }
  78. public function setFeatured(bool $featured): self
  79. {
  80. $this->featured = $featured;
  81. return $this;
  82. }
  83. public function getLinkedPageId(): int
  84. {
  85. return 29;
  86. }
  87. }