We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 51f1d74 + 47c256f commit d9c16ddCopy full SHA for d9c16dd
include/interface.h
@@ -41,7 +41,18 @@ class Interface : private ClassBase
41
// return self
42
return *this;
43
}
44
-
+
45
+ /**
46
+ * Extends exisiting PHP interface
47
+ *
48
+ * Note that the interface that you supply must already exist! Therefore
49
+ * you can only supply interfaces that you created in your own extension.
50
51
+ * @param interface Interface object
52
+ * @return Interface Same object to allow chaining
53
+ */
54
+ Interface &extends(const Interface &interface) { ClassBase::implements(interface); return *this; }
55
56
/**
57
* The namespace needs to have access to the private ClassBase base
58
* class, to actually register the interface.
0 commit comments