php-parser
Version:
Parse PHP code from JS and returns its AST
27 lines (24 loc) • 643 B
JavaScript
/**
* Copyright (C) 2018 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
* @url http://glayzzle.com
*/
;
const Declaration = require("./declaration");
const KIND = "interface";
/**
* An interface definition
* @constructor Interface
* @memberOf module:php-parser
* @extends {Declaration}
* @property {Identifier[]} extends
* @property {Declaration[]} body
*/
module.exports = Declaration.extends(
KIND,
function Interface(name, ext, body, docs, location) {
Declaration.apply(this, [KIND, name, docs, location]);
this.extends = ext;
this.body = body;
}
);