3 declare(strict_types=1);
35 private $previousValue;
60 return $this->previousValue instanceof
MoneyBuilder ? $this->previousValue->
build() : $this->previousValue;
71 return $this->nextValue instanceof
MoneyBuilder ? $this->nextValue->
build() : $this->nextValue;
80 $this->change = $change;
91 $this->previousValue = $previousValue;
102 $this->nextValue = $nextValue;
113 $this->previousValue = $previousValue;
124 $this->nextValue = $nextValue;
133 $this->previousValue instanceof
MoneyBuilder ? $this->previousValue->
build() : $this->previousValue,
134 $this->nextValue instanceof
MoneyBuilder ? $this->nextValue->
build() : $this->nextValue
withChange(?string $change)
withNextValueBuilder(?MoneyBuilder $nextValue)
withNextValue(?Money $nextValue)
withPreviousValueBuilder(?MoneyBuilder $previousValue)
withPreviousValue(?Money $previousValue)