From 2e4318b5ecae22b6bc0f04dfc116ff3e4647b1e8 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Wed, 2 Apr 2014 23:21:16 +0200 Subject: it now is possible to register a class as base class (although not yet working) (request from issue #52) --- src/classbase.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/classbase.cpp') diff --git a/src/classbase.cpp b/src/classbase.cpp index c753c34..18d81d5 100644 --- a/src/classbase.cpp +++ b/src/classbase.cpp @@ -117,6 +117,12 @@ void ClassBase::property(const char *name, const getter_callback_1 &getter, cons */ void ClassBase::implements(const ClassBase &interface) { _impl->implements(interface._impl); } +/** + * Set the base class + * @param base Php::Class object that is the base + */ +void ClassBase::extends(const ClassBase &base) { _impl->extends(base._impl); } + /** * End namespace */ -- cgit v1.2.3