Skip to content

Instantly share code, notes, and snippets.

@karakanb
Created December 24, 2020 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karakanb/e5e077b72a49533569402c3021fde49d to your computer and use it in GitHub Desktop.
Save karakanb/e5e077b72a49533569402c3021fde49d to your computer and use it in GitHub Desktop.
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