Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit abfc449

Browse files
committed
Remove CallbackInfo, closes #67
1 parent c17712d commit abfc449

File tree

3 files changed

+98
-69
lines changed

3 files changed

+98
-69
lines changed

src/CallbackInfo.php

Lines changed: 0 additions & 67 deletions
This file was deleted.

src/FunctionCallbackInfo.php

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,56 @@
2222
* including the receiver, the number and values of arguments, and
2323
* the holder of the function.
2424
*/
25-
class FunctionCallbackInfo extends CallbackInfo
25+
class FunctionCallbackInfo
2626
{
27+
/**
28+
* @return Isolate
29+
*/
30+
public function getIsolate(): Isolate
31+
{
32+
}
33+
34+
/**
35+
* @return Context
36+
*/
37+
public function getContext(): Context
38+
{
39+
}
40+
41+
/**
42+
* Returns the receiver. This corresponds to the "this" value.
43+
*
44+
* @return ObjectValue
45+
*/
46+
public function this(): ObjectValue
47+
{
48+
}
49+
50+
/**
51+
* If the callback was created without a Signature, this is the same
52+
* value as This(). If there is a signature, and the signature didn't match
53+
* This() but one of its hidden prototypes, this will be the respective
54+
* hidden prototype.
55+
*
56+
* Note that this is not the prototype of This() on which the accessor
57+
* referencing this callback was found (which in V8 internally is often
58+
* referred to as holder [sic]).
59+
*
60+
* @return ObjectValue
61+
*/
62+
public function holder(): ObjectValue
63+
{
64+
}
65+
66+
/**
67+
* The ReturnValue for the call
68+
*
69+
* @return ReturnValue
70+
*/
71+
public function getReturnValue(): ReturnValue
72+
{
73+
}
74+
2775
/**
2876
* @return int
2977
*/

src/PropertyCallbackInfo.php

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,56 @@
1919
* The information passed to a property callback about the context
2020
* of the property access.
2121
*/
22-
class PropertyCallbackInfo extends CallbackInfo
22+
class PropertyCallbackInfo
2323
{
24+
/**
25+
* @return Isolate
26+
*/
27+
public function getIsolate(): Isolate
28+
{
29+
}
30+
31+
/**
32+
* @return Context
33+
*/
34+
public function getContext(): Context
35+
{
36+
}
37+
38+
/**
39+
* Returns the receiver. This corresponds to the "this" value.
40+
*
41+
* @return ObjectValue
42+
*/
43+
public function this(): ObjectValue
44+
{
45+
}
46+
47+
/**
48+
* If the callback was created without a Signature, this is the same
49+
* value as This(). If there is a signature, and the signature didn't match
50+
* This() but one of its hidden prototypes, this will be the respective
51+
* hidden prototype.
52+
*
53+
* Note that this is not the prototype of This() on which the accessor
54+
* referencing this callback was found (which in V8 internally is often
55+
* referred to as holder [sic]).
56+
*
57+
* @return ObjectValue
58+
*/
59+
public function holder(): ObjectValue
60+
{
61+
}
62+
63+
/**
64+
* The ReturnValue for the call
65+
*
66+
* @return ReturnValue
67+
*/
68+
public function getReturnValue(): ReturnValue
69+
{
70+
}
71+
2472
/**
2573
* Returns true if the intercepted function should throw if an error occurs.
2674
* Usually, true corresponds to 'use strict'.

0 commit comments

Comments
 (0)