Created
April 2, 2021 14:15
-
-
Save vanbrabantf/9020aa13a1e28cdcc0407d81e51b901a to your computer and use it in GitHub Desktop.
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 | |
public function __construct(string $firstName, string $lastName) | |
{ | |
Assert::stringNotEmpty($firstName); | |
Assert::stringNotEmpty($lastName); | |
Assert::alpha($firstName); | |
Assert::alpha($lastName); | |
$this->firstName = $firstName; | |
$this->lastName = $lastName; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment