Last active
July 3, 2020 18:41
-
-
Save eujoy/3dff61e7b9f73beac3270c407dd15ece to your computer and use it in GitHub Desktop.
This file contains hidden or 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 UserBuilder { | |
/** | |
* Private variables, constructor, build function... | |
*/ | |
/** | |
* Set the value for first_name. | |
* | |
* @param String $first_name | |
*/ | |
function withFirstName(string $first_name) : UserBuilder { | |
$this->object->first_name = $firstname; | |
return $this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment