<?php
namespace JanusHercules\GoogleAdsTracking\Domain\Entity;
use App\Utility\DatabaseIdGenerator;
use DateTime;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity]
#[ORM\Table(name: 'google_ads_tracking_initial_clicks')]
class GoogleAdsTrackingInitialClick
{
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
#[ORM\CustomIdGenerator(class: DatabaseIdGenerator::class)]
#[ORM\Column(
type: Types::GUID,
unique: true
)]
private ?string $id = null;
public function getId(): ?string
{
return $this->id;
}
#[ORM\Column(
type : Types::GUID,
nullable: false
)]
private string $clientId;
public function getClientId(): string
{
return $this->clientId;
}
public function setClientId(string $clientId): void
{
$this->clientId = $clientId;
}
#[ORM\Column(
type : Types::DATETIME_MUTABLE,
nullable: false
)]
private DateTime $createdAt;
public function getCreatedAt(): DateTime
{
return $this->createdAt;
}
public function setCreatedAt(DateTime $createdAt): void
{
$this->createdAt = $createdAt;
}
#[ORM\Column(
type : Types::JSON,
nullable: false
)]
private string $parameters;
public function getParameters(): string
{
return $this->parameters;
}
public function setParameters(string $parameters): void
{
$this->parameters = $parameters;
}
#[ORM\Column(
type : Types::STRING,
length : 1024,
nullable: true,
)]
private string $gclId;
public function getGclId(): string
{
return $this->gclId;
}
public function setGclId(string $gclId): void
{
$this->gclId = $gclId;
}
}