summaryrefslogtreecommitdiff
path: root/include/interface.h
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2015-03-26 16:00:10 +0100
committerMartijn Otto <martijn.otto@copernica.com>2015-03-26 16:00:10 +0100
commit7a928e2b19bddf152fd838469cc50805d4132401 (patch)
tree0a6657f4b94c27556b2f218e407f752018540d3b /include/interface.h
parentae4fa5f871d937773e9facde87a32784e715e3ae (diff)
Changed default visibility for symbols in the PHP-CPP library to hidden and explicitly exported all symbols available from the public API. Moved the hiddenpointer to the zend implementation directory as it is not meant to be used publicly and not referenced anywhere from the API anyway
Diffstat (limited to 'include/interface.h')
-rw-r--r--include/interface.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/interface.h b/include/interface.h
index 01bb6f5..ecb011e 100644
--- a/include/interface.h
+++ b/include/interface.h
@@ -13,7 +13,7 @@ namespace Php {
/**
* Class definition
*/
-class Interface : private ClassBase
+class PHPCPP_EXPORT Interface : private ClassBase
{
public:
/**
@@ -21,12 +21,12 @@ public:
* @param name
*/
Interface(const char *name) : ClassBase(name, ClassType::Interface) {}
-
+
/**
* Destructor
*/
virtual ~Interface() {}
-
+
/**
* Add a - of course abstract - method to the interface
* @param name Name of the method
@@ -37,7 +37,7 @@ public:
{
// call base
ClassBase::method(name, Abstract | Public, arguments);
-
+
// return self
return *this;
}
@@ -58,7 +58,7 @@ public:
* class, to actually register the interface.
*/
friend class Namespace;
-
+
/**
* All Php::Class<AnyThing> also need access to the base class to
* register an interface.
@@ -70,4 +70,3 @@ public:
* End namespace
*/
}
-