-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathpropertyhook.js
More file actions
33 lines (31 loc) · 834 Bytes
/
propertyhook.js
File metadata and controls
33 lines (31 loc) · 834 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
/**
* Copyright (C) 2024 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
* @url http://glayzzle.com
*/
"use strict";
const Node = require("./node");
const KIND = "propertyhook";
/**
* Defines a class property hook getter & setter
*
* @constructor PropertyHook
* @memberOf module:php-parser
* @extends {Node}
* @property {string} name
* @property {Boolean} isFinal
* @property {Boolean} byref
* @property {Parameter|null} parameter
* @property {Block|Statement} body
*/
module.exports = Node.extends(
KIND,
function PropertyHook(name, isFinal, byref, parameter, body, docs, location) {
Node.apply(this, [KIND, docs, location]);
this.name = name;
this.byref = byref;
this.parameter = parameter;
this.body = body;
this.isFinal = isFinal;
},
);