modified) { return $this->foo . ' (modified)'; } return $this->foo; } set(string $value) { $this->foo = strtolower($value); $this->modified = true; } } } function main() { $example = new Example(); $example->foo = 'Hello World'; }