<?php
declare(strict_types=1);
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\System\CustomerRegistrationInfoRepository")
*
* @ORM\Table(name="customer_registration_info",
* uniqueConstraints={
*
* @ORM\UniqueConstraint(name="id_customer", columns={"id_customer", "step"})
* })
*/
class CustomerRegistrationInfo
{
/**
* @ORM\Id()
*
* @ORM\GeneratedValue()
*
* @ORM\Column(type="integer", name="id")
*/
private $id;
/**
* @var Customer
*
* @ORM\ManyToOne(targetEntity="App\Entity\System\Customer", inversedBy="customerApi")
*
* @ORM\JoinColumn(name="id_customer", referencedColumnName="id_customer", nullable=false)
*/
private $customer;
/**
* @var string|null
*
* @ORM\Column(type="string", length=30, nullable=true)
*/
private $os;
/**
* @var string|null
*
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $country;
/**
* @var string|null
*
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $deviceType;
/**
* @var string|null
*
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $browser;
/**
* @var string|null
*
* @ORM\Column(type="string", length=50, nullable=true)
*/
private $ip;
/**
* @var int|null
*
* @ORM\Column(type="integer", length=4)
*/
private $step;
/**
* @var \DateTime
*
* @ORM\Column(type="datetime", options={"default":"CURRENT_TIMESTAMP"}, name="date_add")
*/
private $dateAdd;
public function getId()
{
return $this->id;
}
public function setId($id)
{
$this->id = $id;
return $this;
}
public function getCustomer(): Customer
{
return $this->customer;
}
public function setCustomer(Customer $customer): CustomerRegistrationInfo
{
$this->customer = $customer;
return $this;
}
public function getOs(): ?string
{
return $this->os;
}
public function setOs(?string $os): CustomerRegistrationInfo
{
$this->os = $os;
return $this;
}
public function getCountry(): string
{
return $this->country;
}
public function setCountry(string $country): CustomerRegistrationInfo
{
$this->country = $country;
return $this;
}
public function getDeviceType(): ?string
{
return $this->deviceType;
}
public function setDeviceType(?string $deviceType): CustomerRegistrationInfo
{
$this->deviceType = $deviceType;
return $this;
}
public function getBrowser(): ?string
{
return $this->browser;
}
public function setBrowser(?string $browser): CustomerRegistrationInfo
{
$this->browser = $browser;
return $this;
}
public function getIp(): ?string
{
return $this->ip;
}
public function setIp(?string $ip): CustomerRegistrationInfo
{
$this->ip = $ip;
return $this;
}
public function getStep(): ?int
{
return $this->step;
}
public function setStep(?int $step): CustomerRegistrationInfo
{
$this->step = $step;
return $this;
}
public function getDateAdd(): \DateTime
{
return $this->dateAdd;
}
public function setDateAdd(\DateTime $dateAdd): CustomerRegistrationInfo
{
$this->dateAdd = $dateAdd;
return $this;
}
}