/*!
* Copyright (C) 2017 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
* @url http://glayzzle.com
*/
var Declaration = require('./declaration');
var KIND = 'parameter';
/**
* Defines a function parameter
* @constructor Parameter
* @extends {Declaration}
* @property {Identifier|null} type
* @property {Node|null} value
* @property {boolean} byref
* @property {boolean} variadic
* @property {boolean} nullable
*/
var Parameter = Declaration.extends(function Parameter(name, type, value, isRef, isVariadic, nullable, location) {
Declaration.apply(this, [KIND, name, location]);
this.value = value;
this.type = type;
this.byref = isRef;
this.variadic = isVariadic;
this.nullable = nullable;
});
module.exports = Parameter;
|