Created
December 4, 2019 08:05
-
-
Save tsh-code/5e8c45ff5182e0096b0441e97e8c0b06 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 | |
{ | |
public string $name; | |
public ?string $surname; | |
public function __construct(string $name, ?string $surname) { | |
$this->name = $name; | |
$this->surname = $surname; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment