Last active
August 17, 2021 14:12
-
-
Save dgafka/530f256a4edac4e69a856cf7d1e24a67 to your computer and use it in GitHub Desktop.
handlings-events-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
<?php | |
class PersonWasRegistered | |
{ | |
public function __construct(private string $personId) {} | |
public function getPersonId(): string | |
{ | |
return $this->personId; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment