summaryrefslogtreecommitdiff
path: root/tests/simple/simple.cpp
blob: 36db294dc6170211ab669e64d271cd3627430643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
 *  Simple.h
 *
 *  A very simple extension that does almost nothing
 *
 *  @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
 *  @copyright 2013 Copernica BV
 */
#include <phpcpp.h>

/**
 *  Override the extension class
 */
class SimpleExtension : public PhpCpp::Extension
{
public:
    /**
     *  Constructor
     */
    SimpleExtension() : Extension(
        "simple", 
        "1.0", 
        "Emiel Bruijntjes <emiel.bruijntjes@copernica.com>", 
        "http://www.copernica.com", 
        "Copyright 2013 Copernica BV")
    {
    }
};

extern "C" {

// create the object for the PHP extension
PHP_CPP_EXTENSION(SimpleExtension);

}