Created
September 28, 2017 05:54
-
-
Save platoosom/9efaac1823997b57a0e78343ef49d52c 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 | |
/** | |
* This is properties. | |
**/ | |
class Post { | |
/** | |
* This is properties. | |
**/ | |
$id = ''; | |
$title = ''; | |
$detail = ''; | |
/** | |
* This is method. | |
**/ | |
public function save() { | |
// Connect to database | |
// Save data to post table | |
// Return result | |
} | |
/** | |
* This is method. | |
**/ | |
public function ID() { | |
return $this->id; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment