summaryrefslogtreecommitdiff
path: root/src/countable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/countable.cpp')
-rw-r--r--src/countable.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/countable.cpp b/src/countable.cpp
new file mode 100644
index 0000000..6182afd
--- /dev/null
+++ b/src/countable.cpp
@@ -0,0 +1,32 @@
+/**
+ * Countable.cpp
+ *
+ * Implementation of the Countable interface
+ *
+ * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
+ * @copyright 2014 Copernica BV
+ */
+#include "includes.h"
+
+#include "spl/spl_iterators.h"
+
+/**
+ * Set up namespace
+ */
+namespace Php {
+
+/**
+ * Implementation of the countable interface
+ * @return zend_class_entry*
+ * @internal
+ */
+struct _zend_class_entry *Countable::implementation()
+{
+ return spl_ce_Countable;
+}
+
+/**
+ * End namespace
+ */
+}
+