|
@@ -45,13 +45,13 @@ class DolibarrContractLine implements ApiResourcesInterface
|
|
|
* Service active from date ...
|
|
* Service active from date ...
|
|
|
*/
|
|
*/
|
|
|
#[Groups('dolibarr_get')]
|
|
#[Groups('dolibarr_get')]
|
|
|
- private \DateTime $dateStart;
|
|
|
|
|
|
|
+ private ?\DateTime $dateStart;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Service active to date ...
|
|
* Service active to date ...
|
|
|
*/
|
|
*/
|
|
|
#[Groups('dolibarr_get')]
|
|
#[Groups('dolibarr_get')]
|
|
|
- private \DateTime $dateEnd;
|
|
|
|
|
|
|
+ private ?\DateTime $dateEnd;
|
|
|
|
|
|
|
|
public function getId(): int
|
|
public function getId(): int
|
|
|
{
|
|
{
|
|
@@ -97,23 +97,23 @@ class DolibarrContractLine implements ApiResourcesInterface
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function getDateStart(): \DateTime
|
|
|
|
|
|
|
+ public function getDateStart(): ?\DateTime
|
|
|
{
|
|
{
|
|
|
return $this->dateStart;
|
|
return $this->dateStart;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function setDateStart(\DateTime $dateStart): self
|
|
|
|
|
|
|
+ public function setDateStart(?\DateTime $dateStart): self
|
|
|
{
|
|
{
|
|
|
$this->dateStart = $dateStart;
|
|
$this->dateStart = $dateStart;
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function isDateEnd(): \DateTime
|
|
|
|
|
|
|
+ public function isDateEnd(): ?\DateTime
|
|
|
{
|
|
{
|
|
|
return $this->dateEnd;
|
|
return $this->dateEnd;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function setDateEnd(\DateTime $dateEnd): self
|
|
|
|
|
|
|
+ public function setDateEnd(?\DateTime $dateEnd): self
|
|
|
{
|
|
{
|
|
|
$this->dateEnd = $dateEnd;
|
|
$this->dateEnd = $dateEnd;
|
|
|
return $this;
|
|
return $this;
|