diff options
Diffstat (limited to 'include/script.h')
-rw-r--r-- | include/script.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/include/script.h b/include/script.h index a9c2921..af68a59 100644 --- a/include/script.h +++ b/include/script.h @@ -21,6 +21,11 @@ struct _zend_op_array; namespace Php { /** + * Forward declarations + */ +class Opcodes; + +/** * Class definition */ class Script @@ -62,33 +67,27 @@ public: /** * Destructor */ - virtual ~Script() {} + virtual ~Script(); /** * Is the script a valid PHP script without syntax errors? * @return bool */ - bool valid() const - { - return _opcodes.valid(); - } + bool valid() const; /** * Execute the script * The return value of the script is returned * @return Value */ - Value execute() const - { - return _opcodes.execute(); - } + Value execute() const; private: /** * The opcodes * @var Opcodes */ - Opcodes _opcodes; + Opcodes *_opcodes; /** * Helper function to compile the source code |