Skip to content

Commit a8886bc

Browse files
HP-1631: created Unit test for ActionStateDeterminer class
1 parent 7c1611c commit a8886bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sale/Sale.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function getCloseTime(): ?DateTimeImmutable
105105
return $this->closeTime;
106106
}
107107

108-
public function close(DateTimeImmutable $closeTime): void
108+
public function close(DateTimeImmutable $closeTime): SaleInterface
109109
{
110110
if ($this->closeTime !== null) {
111111
throw new InvariantException('Sale is already closed');
@@ -116,6 +116,8 @@ public function close(DateTimeImmutable $closeTime): void
116116
}
117117

118118
$this->closeTime = $closeTime;
119+
120+
return $this;
119121
}
120122

121123
public function setId($id)

0 commit comments

Comments
 (0)