summaryrefslogtreecommitdiff
path: root/Examples/ReturnObject/child.h
blob: b9e8d9c60c53fc9d2d2f72ab39c842a42abd523f (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
36
/**
 *  Child.h
 * 
 *  Class that is exported to PHP space
 * 
 *  @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
 *  @copyright 2015 Copernica BV
 */

/**
 *  Include guard
 */
#pragma once

/**
 *  Class definition
 */
class Child : public Php::Base
{
public:
    /**
     *  Constructor and destructor
     */
    Child() {}
    virtual ~Child() {}
    
    /**
     *  Cast to a string
     *  @return const char *
     */
    const char *__toString() const
    {
        return "this is the child";
    }
};