-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathfromphp.h
More file actions
54 lines (46 loc) · 786 Bytes
/
fromphp.h
File metadata and controls
54 lines (46 loc) · 786 Bytes
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* FromPhp.h
*
* Class to convert a variable from php space into javascript context
*
* @author Emiel Bruijntjes <[email protected]>
* @copyright 2025 Copernica BV
*/
/**
* Include guard
*/
#pragma once
/**
* Dependencies
*/
#include <v8.h>
#include <phpcpp.h>
/**
* Begin of namespace
*/
namespace JS {
/**
* Class definition
*/
class FromPhp : public v8::Local<v8::Value>
{
public:
/**
* Constructor
* @param isolate
* @param value
*/
FromPhp(v8::Isolate *isolate, const Php::Value &value);
/**
* Destructor
*/
virtual ~FromPhp() = default;
/**
* Expose base class assignment
*/
using v8::Local<v8::Value>::operator=;
};
/**
* End of namespace
*/
}