summaryrefslogtreecommitdiff
path: root/include/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/file.h')
-rw-r--r--include/file.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/include/file.h b/include/file.h
index 6e24516..7029bb6 100644
--- a/include/file.h
+++ b/include/file.h
@@ -55,7 +55,19 @@ public:
virtual ~File();
/**
- * Include the file once
+ * Does the file exist?
+ * @return boolean
+ */
+ bool exists();
+
+ /**
+ * Is this a valid file?
+ * @return boolean
+ */
+ bool valid();
+
+ /**
+ * Execute the file once (do nothing if the file already was executed)
* @return Php::Value
*/
Value once();
@@ -78,6 +90,12 @@ private:
* @var Opcodes
*/
Opcodes *_opcodes = nullptr;
+
+ /**
+ * Compile the file
+ * @return bool
+ */
+ bool compile();
};