|
@@ -23,20 +23,16 @@ class SimulationSession
|
|
|
#[ORM\Column]
|
|
#[ORM\Column]
|
|
|
protected mixed $initiatorIp;
|
|
protected mixed $initiatorIp;
|
|
|
|
|
|
|
|
- /** -- Warning : auto-generated property, checkup the attribute options -- */
|
|
|
|
|
- #[ORM\Column(type: 'datetime', options: ['nullable' => true])]
|
|
|
|
|
|
|
+ #[ORM\Column(type: 'datetime', nullable: true)]
|
|
|
protected ?\DateTimeInterface $expiryDate;
|
|
protected ?\DateTimeInterface $expiryDate;
|
|
|
|
|
|
|
|
- /** -- Warning : auto-generated property, checkup the attribute options -- */
|
|
|
|
|
#[ORM\Column(options: ['default' => false])]
|
|
#[ORM\Column(options: ['default' => false])]
|
|
|
protected bool $alreadyUsed;
|
|
protected bool $alreadyUsed;
|
|
|
|
|
|
|
|
- /** -- Warning : auto-generated property, checkup the attribute options -- */
|
|
|
|
|
- #[ORM\Column(type: 'datetime', options: ['nullable' => true])]
|
|
|
|
|
|
|
+ #[ORM\Column(type: 'datetime', nullable: true)]
|
|
|
protected ?\DateTimeInterface $createDate;
|
|
protected ?\DateTimeInterface $createDate;
|
|
|
|
|
|
|
|
- /** -- Warning : auto-generated property, checkup the attribute options -- */
|
|
|
|
|
- #[ORM\Column(type: 'datetime', options: ['nullable' => true])]
|
|
|
|
|
|
|
+ #[ORM\Column(type: 'datetime', nullable: true)]
|
|
|
protected ?\DateTimeInterface $updateDate;
|
|
protected ?\DateTimeInterface $updateDate;
|
|
|
|
|
|
|
|
/** -- Warning : auto-generated property, checkup the attribute options -- */
|
|
/** -- Warning : auto-generated property, checkup the attribute options -- */
|
|
@@ -64,7 +60,7 @@ class SimulationSession
|
|
|
protected Access $accessSimulated;
|
|
protected Access $accessSimulated;
|
|
|
|
|
|
|
|
#[ORM\OneToOne(mappedBy: 'simulationSession', targetEntity: Token::class, cascade: ['persist'])]
|
|
#[ORM\OneToOne(mappedBy: 'simulationSession', targetEntity: Token::class, cascade: ['persist'])]
|
|
|
- protected Token $token;
|
|
|
|
|
|
|
+ protected ?Token $token;
|
|
|
|
|
|
|
|
function getId(): int
|
|
function getId(): int
|
|
|
{
|
|
{
|
|
@@ -88,12 +84,12 @@ class SimulationSession
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function getExpiryDate(): \DateTimeInterface
|
|
|
|
|
|
|
+ function getExpiryDate(): ?\DateTimeInterface
|
|
|
{
|
|
{
|
|
|
return $this->expiryDate;
|
|
return $this->expiryDate;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function setExpiryDate(\DateTimeInterface $expiryDate): self
|
|
|
|
|
|
|
+ function setExpiryDate(?\DateTimeInterface $expiryDate): self
|
|
|
{
|
|
{
|
|
|
$this->expiryDate = $expiryDate;
|
|
$this->expiryDate = $expiryDate;
|
|
|
return $this;
|
|
return $this;
|
|
@@ -110,23 +106,23 @@ class SimulationSession
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function getCreateDate(): \DateTimeInterface
|
|
|
|
|
|
|
+ function getCreateDate(): ?\DateTimeInterface
|
|
|
{
|
|
{
|
|
|
return $this->createDate;
|
|
return $this->createDate;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function setCreateDate(\DateTimeInterface $createDate): self
|
|
|
|
|
|
|
+ function setCreateDate(?\DateTimeInterface $createDate): self
|
|
|
{
|
|
{
|
|
|
$this->createDate = $createDate;
|
|
$this->createDate = $createDate;
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function getUpdateDate(): \DateTimeInterface
|
|
|
|
|
|
|
+ function getUpdateDate(): ?\DateTimeInterface
|
|
|
{
|
|
{
|
|
|
return $this->updateDate;
|
|
return $this->updateDate;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function setUpdateDate(\DateTimeInterface $updateDate): self
|
|
|
|
|
|
|
+ function setUpdateDate(?\DateTimeInterface $updateDate): self
|
|
|
{
|
|
{
|
|
|
$this->updateDate = $updateDate;
|
|
$this->updateDate = $updateDate;
|
|
|
return $this;
|
|
return $this;
|
|
@@ -176,34 +172,34 @@ class SimulationSession
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function getAccessInitiator(): Access\Access
|
|
|
|
|
|
|
+ function getAccessInitiator(): Access
|
|
|
{
|
|
{
|
|
|
return $this->accessInitiator;
|
|
return $this->accessInitiator;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function setAccessInitiator(Access\Access $accessInitiator): self
|
|
|
|
|
|
|
+ function setAccessInitiator(Access $accessInitiator): self
|
|
|
{
|
|
{
|
|
|
$this->accessInitiator = $accessInitiator;
|
|
$this->accessInitiator = $accessInitiator;
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function getAccessSimulated(): Access\Access
|
|
|
|
|
|
|
+ function getAccessSimulated(): Access
|
|
|
{
|
|
{
|
|
|
return $this->accessSimulated;
|
|
return $this->accessSimulated;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function setAccessSimulated(Access\Access $accessSimulated): self
|
|
|
|
|
|
|
+ function setAccessSimulated(Access $accessSimulated): self
|
|
|
{
|
|
{
|
|
|
$this->accessSimulated = $accessSimulated;
|
|
$this->accessSimulated = $accessSimulated;
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function getToken(): Token\Token
|
|
|
|
|
|
|
+ function getToken(): ?Token
|
|
|
{
|
|
{
|
|
|
return $this->token;
|
|
return $this->token;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function setToken(Token\Token $token): self
|
|
|
|
|
|
|
+ function setToken(?Token $token): self
|
|
|
{
|
|
{
|
|
|
$this->token = $token;
|
|
$this->token = $token;
|
|
|
return $this;
|
|
return $this;
|