Created
January 6, 2019 11:47
-
-
Save richlloydmiles/63f45651b5aad19fd1246a90d89a70d0 to your computer and use it in GitHub Desktop.
This file contains 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
<?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