summaryrefslogtreecommitdiff
path: root/zend/function.cpp
blob: dddc4891d32a5ad8d9450d4d3a0c01594152d8bb (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
/**
 *  Function.cpp
 *
 *  Implementation file for the Function class
 *
 *  @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
 *  @copyright 2015 Copernica BV
 */

/**
 *  Dependencies
 */
#include "includes.h"

/**
 *  Set up namespace
 */
namespace Php {

/**
 *  Constructor
 *  @param  function        The function to be wrapped
 */
Function::Function(const std::function<Php::Value(Php::Parameters&)> &function) : Value(Object(Functor::entry(), new Functor(function))) {}

/**
 *  End of namespace
 */
}