You've already forked symfony-playground
dates
This commit is contained in:
@ -20,6 +20,12 @@ class MerParaSub
|
||||
#[ORM\JoinColumn(nullable: false)]
|
||||
private MerService $service;
|
||||
|
||||
#[ORM\Column(type: 'datetime_immutable')]
|
||||
private $subDate;
|
||||
|
||||
#[ORM\Column(type: 'datetime_immutable', nullable: true)]
|
||||
private $unsubDate;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
@ -48,4 +54,28 @@ class MerParaSub
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSubDate(): ?\DateTimeImmutable
|
||||
{
|
||||
return $this->subDate;
|
||||
}
|
||||
|
||||
public function setSubDate(\DateTimeImmutable $subDate): self
|
||||
{
|
||||
$this->subDate = $subDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getUnsubDate(): ?\DateTimeImmutable
|
||||
{
|
||||
return $this->unsubDate;
|
||||
}
|
||||
|
||||
public function setUnsubDate(?\DateTimeImmutable $unsubDate): self
|
||||
{
|
||||
$this->unsubDate = $unsubDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user