diff options
Diffstat (limited to 'include/protected.h')
-rw-r--r-- | include/protected.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/include/protected.h b/include/protected.h new file mode 100644 index 0000000..e660f76 --- /dev/null +++ b/include/protected.h @@ -0,0 +1,39 @@ +/** + * Protected.h + * + * Class for adding public properties to a class + * + * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com> + * @copyright 2013 Copernica BV + */ + +/** + * Namespace + */ +namespace Php { + +/** + * Class definition + */ +class Protected : public Member +{ +public: + /** + * Constructor + * @param name Name of the property + * @param value Default value of the property + */ + Protected(const char *name, const Value &value) : Member(name, false, value) {} + + /** + * Destructor + */ + virtual ~Protected() {} + +}; + +/** + * End of namespace + */ +} + |