Created
February 17, 2010 01:42
-
-
Save ukstudio/306190 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Entry { | |
| private $title; | |
| private $body; | |
| private $posted_at; | |
| private $author; | |
| public function getTitle() { | |
| return $this->title; | |
| } | |
| public function setTitle($title) { | |
| $this->title = $title; | |
| } | |
| /* setter/getter が続く感じ */ | |
| } | |
| $entry = new Entry(); | |
| $entry->setTitle("title"); | |
| echo $entry->getTitle(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment