PhpParser\NodeVisitor\NameResolver::__construct PHP Method

__construct() public method

Options: If "preserveOriginalNames" is enabled, an "originalName" attribute will be added to all name nodes that underwent resolution.
public __construct ( PhpParser\ErrorHandler $errorHandler = null, array $options = [] )
$errorHandler PhpParser\ErrorHandler Error handler
$options array Options
    public function __construct(ErrorHandler $errorHandler = null, array $options = []) {
        $this->errorHandler = $errorHandler ?: new ErrorHandler\Throwing;
        $this->preserveOriginalNames = !empty($options['preserveOriginalNames']);
    }