function NodeDumper::__construct
Constructs a NodeDumper.
Supported options:
- bool dumpComments: Whether comments should be dumped.
- bool dumpPositions: Whether line/offset information should be dumped. To dump offset information, the code needs to be passed to dump().
- bool dumpOtherAttributes: Whether non-comment, non-position attributes should be dumped.
Parameters
array $options Options (see description):
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ NodeDumper.php, line 44
Class
Namespace
PhpParserCode
public function __construct(array $options = []) {
$this->dumpComments = !empty($options['dumpComments']);
$this->dumpPositions = !empty($options['dumpPositions']);
$this->dumpOtherAttributes = !empty($options['dumpOtherAttributes']);
}