#ifndef METHODCALL_H_
#define METHODCALL_H_

#include "MethodCallBase.h"
#include "smoke.h"
#include "php.h"

class MethodCall : public MethodCallBase
{
public:
	MethodCall(Smoke *smoke, const Smoke::Index method, zval* target, zval **sp, zval *&retval);
	virtual ~MethodCall();
	Marshall::Action action();
	zval* var();
	void callMethod();
	virtual const int items();
	bool cleanup();
	bool doAlloc() { return false; }

private:
	zval* _target;
	int _items;
	zval *&_retval;
	smokephp_object * _o;
	bool _staticCall;
};

#endif /*METHODCALL_H_*/
