aboutsummaryrefslogtreecommitdiff
path: root/lib/exTpl/RawExpression.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/exTpl/RawExpression.php')
-rw-r--r--lib/exTpl/RawExpression.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/exTpl/RawExpression.php b/lib/exTpl/RawExpression.php
new file mode 100644
index 0000000..275f239
--- /dev/null
+++ b/lib/exTpl/RawExpression.php
@@ -0,0 +1,19 @@
+<?php
+
+namespace exTpl;
+
+/**
+ * RawExpression represents the "raw" filter function.
+ */
+class RawExpression extends UnaryExpression
+{
+ /**
+ * Returns the value of this expression.
+ *
+ * @param Context $context symbol table
+ */
+ public function value(Context $context): mixed
+ {
+ return $this->expr->value($context);
+ }
+}