Skip to content

Instantly share code, notes, and snippets.

@richlloydmiles
Created January 6, 2019 11:47
Show Gist options
  • Save richlloydmiles/63f45651b5aad19fd1246a90d89a70d0 to your computer and use it in GitHub Desktop.
Save richlloydmiles/63f45651b5aad19fd1246a90d89a70d0 to your computer and use it in GitHub Desktop.
<?php
class Person {
protected $name, $email, $id;
public function setName($name) {
$this->name = $name;
}
public function getName() {
return $this->name;
}
public function setEmail($email) {
$this->email = $email;
}
public function getEmail() {
return $this->email;
}
function __construct($name, $email) {
$this->setName($name);
$this->setEmail($email);
}
public function read() {
}
public function update() {
}
public function delete() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment