Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Tweet {
- protected $text;
- public function __construct($text)
- {
- $this->text = $text;
- }
- public function __get($property) {
- if (property_exists($this, $property)) {
- return $this->$property;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement