瀏覽代碼

Merge tag 'V8-3048' into develop

Vincent GUFFON 3 年之前
父節點
當前提交
7b7be121c7
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/ApiResources/Dolibarr/DolibarrContractLine.php

+ 6 - 6
src/ApiResources/Dolibarr/DolibarrContractLine.php

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