<?phpnamespace App\Entity;use App\Constants\UserIpConstants;use App\Repository\UserIpRepository;use App\Traits\TimeTrackTrait;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: UserIpRepository::class)]class UserIp{ use TimeTrackTrait; #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(name: 'event_type', type: 'string', length: 191)] private $type; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $ip = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $operator = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $tariff = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $user = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $registerEmail = null; #[ORM\Column(name: 'order_reference', type: Types::TEXT, nullable: true)] private ?string $order = null; public function getId(): ?int { return $this->id; } public function getType(): ?string { return $this->type; } public function setType(string $type): static { $this->type = $type; return $this; } public function getTypeLabel(): string { $types = UserIpConstants::loadValues(); return $types[$this->type] ?? (string)$this->type; } public function getIp(): ?string { return $this->ip; } public function setIp(string $ip): static { $this->ip = $ip; return $this; } public function getOperator(): ?string { return $this->operator; } public function setOperator(string $operator): static { $this->operator = $operator; return $this; } public function getTariff(): ?string { return $this->tariff; } public function setTariff(string $tariff): static { $this->tariff = $tariff; return $this; } public function getUser(): ?string { return $this->user; } public function setUser(string $user): static { $this->user = $user; return $this; } public function getOrder(): ?string { return $this->order; } public function setOrder(string $order): static { $this->order = $order; return $this; } public function getRegisterEmail(): ?string { return $this->registerEmail; } public function setRegisterEmail(?string $registerEmail): static { $this->registerEmail = $registerEmail; return $this; } /** * Set createdAt. * * @param \DateTime|null $createdAt * * @return UserIp */ public function setCreatedAt($createdAt = null) { $this->createdAt = $createdAt; return $this; } /** * Get createdAt. * * @return \DateTime|null */ public function getCreatedAt() { return $this->createdAt; } /** * Set updatedAt. * * @param \DateTime|null $updatedAt * * @return UserIp */ public function setUpdatedAt($updatedAt = null) { $this->updatedAt = $updatedAt; return $this; } /** * Get updatedAt. * * @return \DateTime|null */ public function getUpdatedAt() { return $this->updatedAt; }}