This repository was archived by the owner on Mar 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathFunctionCallbackInfo.php
95 lines (82 loc) · 1.73 KB
/
FunctionCallbackInfo.php
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php declare(strict_types=1);
/**
* This file is part of the phpv8/php-v8 PHP extension.
*
* Copyright (c) 2015-2018 Bogdan Padalko <thepinepain@gmail.com>
*
* Licensed under the MIT license: http://opensource.org/licenses/MIT
*
* For the full copyright and license information, please view the
* LICENSE file that was distributed with this source or visit
* http://opensource.org/licenses/MIT
*/
namespace V8;
/**
* The argument information given to function call callbacks. This
* class provides access to information about the context of the call,
* including the receiver, the number and values of arguments, and
* the holder of the function.
*/
class FunctionCallbackInfo implements CallbackInfoInterface
{
/**
* {@inheritdoc}
*/
public function getIsolate(): Isolate
{
}
/**
* {@inheritdoc}
*/
public function getContext(): Context
{
}
/**
* {@inheritdoc}
*/
public function this(): ObjectValue
{
}
/**
* {@inheritdoc}
*/
public function holder(): ObjectValue
{
}
/**
* {@inheritdoc}
*/
public function getReturnValue(): ReturnValue
{
}
/**
* @return int
*/
public function length(): int
{
}
/**
* Get available arguments
*
* @return Value[]
*/
public function arguments(): array
{
}
/**
* For construct calls, this returns the "new.target" value.
*
* @return Value|PrimitiveValue|ObjectValue
*/
public function newTarget(): Value
{
}
/**
* Indicates whether this is a regular call or a construct call.
*
* @return bool
*/
public function isConstructCall(): bool
{
}
}