Explorar el Código

Merge tag 'V8-3048' into develop

Vincent GUFFON hace 3 años
padre
commit
7b7be121c7
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  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;