Last active
December 8, 2021 17:24
-
-
Save dgafka/d20c89ce971476923d5124526b994bdf to your computer and use it in GitHub Desktop.
Event Sourcing in PHP-01
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Product | |
{ | |
private int $productId; | |
private float $price; | |
public function changePrice(float $price): void | |
{ | |
$this->price = $price; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment