blob: a10fff1eb94db643b3773b6823912200611d2746 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/**
* ByRef.h
*
* Overridden Argument class to specify by-reference function arguments
*
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
* @copyright 2013 Copernica BV
*/
/**
* Namespace
*/
namespace Php {
/**
* Class definition
*/
class ByRef : public Argument
{
public:
/**
* Constructor
* @param name Name of the argument
* @param type Argument type
* @param required Is this argument required?
*/
ByRef(const char *name, Type type, bool required = true) : Argument(name, type, required, true) {}
/**
* Constructor
* @param name Name of the argument
* @param classname Name of the class
* @param nullable Can it be null?
* @param required Is this argument required?
*/
ByRef(const char *name, const char *classname, bool nullable = true, bool required = true) : Argument(name, classname, nullable, required, true) {}
/**
* Copy constructor
* @param argument
*/
ByRef(const ByRef &argument) : Argument(argument) {}
/**
* Move constructor
* @param argument
*/
ByRef(ByRef &&argument) : Argument(argument) {}
/**
* Destructor
*/
virtual ~ByRef() {}
};
/**
* End of namespace
*/
}
|