summaryrefslogtreecommitdiff
path: root/Examples/CppClassesInPhp/mycustomclass.cpp
blob: a2e3ca62376409124474be0fa9526c93239b64f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * 	Includes
 */
#include "includes.h"
    
/**
 * 	Does some random printing.
 * 	@param Php::Parameters
 */
void MyCustomClass::myMethod(Php::Parameters &params)
{
	cout << "myMethod is called." << endl;
	cout << "_x: " << _x << endl;
	_x = params[0];
	cout << "New _x" << _x << endl;
}