src/JanusHercules/GoogleAdsTracking/Domain/Entity/GoogleAdsTrackingInitialClick.php line 12

Open in your IDE?
  1. <?php
  2. namespace JanusHercules\GoogleAdsTracking\Domain\Entity;
  3. use App\Utility\DatabaseIdGenerator;
  4. use DateTime;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity]
  8. #[ORM\Table(name: 'google_ads_tracking_initial_clicks')]
  9. class GoogleAdsTrackingInitialClick
  10. {
  11. #[ORM\Id]
  12. #[ORM\GeneratedValue(strategy: 'CUSTOM')]
  13. #[ORM\CustomIdGenerator(class: DatabaseIdGenerator::class)]
  14. #[ORM\Column(
  15. type: Types::GUID,
  16. unique: true
  17. )]
  18. private ?string $id = null;
  19. public function getId(): ?string
  20. {
  21. return $this->id;
  22. }
  23. #[ORM\Column(
  24. type : Types::GUID,
  25. nullable: false
  26. )]
  27. private string $clientId;
  28. public function getClientId(): string
  29. {
  30. return $this->clientId;
  31. }
  32. public function setClientId(string $clientId): void
  33. {
  34. $this->clientId = $clientId;
  35. }
  36. #[ORM\Column(
  37. type : Types::DATETIME_MUTABLE,
  38. nullable: false
  39. )]
  40. private DateTime $createdAt;
  41. public function getCreatedAt(): DateTime
  42. {
  43. return $this->createdAt;
  44. }
  45. public function setCreatedAt(DateTime $createdAt): void
  46. {
  47. $this->createdAt = $createdAt;
  48. }
  49. #[ORM\Column(
  50. type : Types::JSON,
  51. nullable: false
  52. )]
  53. private string $parameters;
  54. public function getParameters(): string
  55. {
  56. return $this->parameters;
  57. }
  58. public function setParameters(string $parameters): void
  59. {
  60. $this->parameters = $parameters;
  61. }
  62. #[ORM\Column(
  63. type : Types::STRING,
  64. length : 1024,
  65. nullable: true,
  66. )]
  67. private string $gclId;
  68. public function getGclId(): string
  69. {
  70. return $this->gclId;
  71. }
  72. public function setGclId(string $gclId): void
  73. {
  74. $this->gclId = $gclId;
  75. }
  76. }