summaryrefslogtreecommitdiff
path: root/include/interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/interface.h')
-rw-r--r--include/interface.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/interface.h b/include/interface.h
index 36f4d50..32462c8 100644
--- a/include/interface.h
+++ b/include/interface.h
@@ -41,12 +41,18 @@ public:
// return self
return *this;
}
-
-private:
+
/**
- * Namespaces have access to the private base class
+ * The namespace needs to have access to the private ClassBase base
+ * class, to actually register the interface.
*/
friend class Namespace;
+
+ /**
+ * All Php::Class<AnyThing> also need access to the base class to
+ * register an interface.
+ */
+ template<typename ANYTHING> friend class Class;
};
/**