Created
December 24, 2020 14:40
-
-
Save karakanb/e5e077b72a49533569402c3021fde49d 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
class Person { | |
private string $firstName; | |
private string $lastName; | |
protected int $age; | |
public ?string $job; | |
public function __construct( | |
string $firstName, | |
string $lastName, | |
int $age, | |
?string $job | |
){ | |
$this->firstName = $firstName; | |
$this->lastName = $lastName; | |
$this->age = $age; | |
$this->job = $job; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment