about summary refs log tree commit diff stats
path: root/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php')
-rw-r--r--vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php b/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php
new file mode 100644
index 0000000..c66d233
--- /dev/null
+++ b/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php
@@ -0,0 +1,29 @@
+<?php declare(strict_types=1);
+
+namespace PhpParser\Node\Expr;
+
+use PhpParser\Node\Expr;
+
+class BooleanNot extends Expr {
+    /** @var Expr Expression */
+    public Expr $expr;
+
+    /**
+     * Constructs a boolean not node.
+     *
+     * @param Expr $expr Expression
+     * @param array<string, mixed> $attributes Additional attributes
+     */
+    public function __construct(Expr $expr, array $attributes = []) {
+        $this->attributes = $attributes;
+        $this->expr = $expr;
+    }
+
+    public function getSubNodeNames(): array {
+        return ['expr'];
+    }
+
+    public function getType(): string {
+        return 'Expr_BooleanNot';
+    }
+}