summaryrefslogtreecommitdiff
path: root/inc/lib/Twig/TestInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/lib/Twig/TestInterface.php')
-rw-r--r--inc/lib/Twig/TestInterface.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/inc/lib/Twig/TestInterface.php b/inc/lib/Twig/TestInterface.php
new file mode 100644
index 00000000..c2ff7258
--- /dev/null
+++ b/inc/lib/Twig/TestInterface.php
@@ -0,0 +1,26 @@
+<?php
+
+/*
+ * This file is part of Twig.
+ *
+ * (c) 2010 Fabien Potencier
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+/**
+ * Represents a template test.
+ *
+ * @package twig
+ * @author Fabien Potencier <fabien@symfony.com>
+ */
+interface Twig_TestInterface
+{
+ /**
+ * Compiles a test.
+ *
+ * @return string The PHP code for the test
+ */
+ function compile();
+}