Skip to content

Instantly share code, notes, and snippets.

Last active Jan 28, 2017
What would you like to do?
class User {
private $firstName;
public function getFirstName() {
return $this->firstName;
public function setFirstName($newFirstName) {
$this->firstName = $newFirstName;
$myUser = new User('Henri');
$myUser->setFirstName('New name');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment