diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-09-10 09:54:14 -0700 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-09-10 09:54:14 -0700 |
commit | 37c38c70de43d9d9ee3c9f0e2f175e19bcc0b485 (patch) | |
tree | 29cf02cfabad5eb22306ac05eaee96efbdb79cd9 /include/arguments.h | |
parent | 85507088051bdfabf8bc71346290949b78c3c914 (diff) |
When registering functions, it now is also possible to specify the signature of the parameters
Diffstat (limited to 'include/arguments.h')
-rw-r--r-- | include/arguments.h | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/include/arguments.h b/include/arguments.h deleted file mode 100644 index e57903f..0000000 --- a/include/arguments.h +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Arguments.h - * - * When a function is invoked, it is passed a vector of arguments. This - * arguments class, that overrides from vector, takes care of that. - * - * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com> - * @copyright 2013 Copernica BV - */ - -/** - * Forward declaration - */ -struct _zend_arg_info; - -/** - * Set up namespace - */ -namespace Php { - -/** - * Class definition - */ -class Arguments -{ -public: - /** - * Constructor - * @param min The min number of arguments - * @param max The max number of arguments - */ - Arguments(int min, int max); - - /** - * No copy or move operations - * @param arguments - */ - Arguments(const Arguments &arguments) = delete; - Arguments(Arguments &&arguments) = delete; - - /** - * Destructor - */ - virtual ~Arguments(); - - /** - * Number of arguments - * @return int - */ - int argc() - { - return _max; - } - - /** - * Number of required arguments - * @return int - */ - int required() - { - return _min; - } - - /** - * Get access to internal data - * @return zend_arg_info* - */ - struct _zend_arg_info *internal() - { - return _argv; - } - -private: - /** - * Min number of arguments - * @var integer - */ - int _min; - - /** - * Max number of arguments - * @var integer - */ - int _max; - - /** - * The arguments - * @var zend_arg_info[] - */ - struct _zend_arg_info *_argv; - -}; - -/** - * End of namespace - */ -} - |