1
|
|
|
<?php |
2
|
|
|
/* |
3
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
4
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
5
|
|
|
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
6
|
|
|
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
7
|
|
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
8
|
|
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
9
|
|
|
*/ |
10
|
|
|
|
11
|
|
|
namespace MpaFirephpWrapper\Options; |
12
|
|
|
|
13
|
|
|
use Zend\Stdlib\AbstractOptions; |
14
|
|
|
|
15
|
|
|
class FirephpWrapperOptions extends AbstractOptions |
16
|
|
|
{ |
17
|
|
|
protected $maxObjectDepth; |
18
|
|
|
protected $maxArrayDepth; |
19
|
|
|
protected $maxDepth; |
20
|
|
|
protected $useNativeJsonEncode; |
21
|
|
|
protected $includeLineNumbers; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @param bool $includeLineNumbers |
25
|
|
|
* @return self |
26
|
|
|
*/ |
27
|
|
|
public function setIncludeLineNumbers($includeLineNumbers) |
28
|
|
|
{ |
29
|
|
|
$this->includeLineNumbers = $includeLineNumbers; |
30
|
|
|
|
31
|
|
|
return $this; |
32
|
|
|
} |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @return bool |
36
|
|
|
*/ |
37
|
|
|
public function getIncludeLineNumbers() |
38
|
|
|
{ |
39
|
|
|
return $this->includeLineNumbers; |
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @param int $maxArrayDepth |
44
|
|
|
* @return self |
45
|
|
|
*/ |
46
|
|
|
public function setMaxArrayDepth($maxArrayDepth) |
47
|
|
|
{ |
48
|
|
|
$this->maxArrayDepth = $maxArrayDepth; |
49
|
|
|
|
50
|
|
|
return $this; |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @return int |
55
|
|
|
*/ |
56
|
|
|
public function getMaxArrayDepth() |
57
|
|
|
{ |
58
|
|
|
return $this->maxArrayDepth; |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @param int $maxDepth |
63
|
|
|
* @return self |
64
|
|
|
*/ |
65
|
|
|
public function setMaxDepth($maxDepth) |
66
|
|
|
{ |
67
|
|
|
$this->maxDepth = $maxDepth; |
68
|
|
|
|
69
|
|
|
return $this; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @return int |
74
|
|
|
*/ |
75
|
|
|
public function getMaxDepth() |
76
|
|
|
{ |
77
|
|
|
return $this->maxDepth; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @param int $maxObjectDepth |
82
|
|
|
* @return self |
83
|
|
|
*/ |
84
|
|
|
public function setMaxObjectDepth($maxObjectDepth) |
85
|
|
|
{ |
86
|
|
|
$this->maxObjectDepth = $maxObjectDepth; |
87
|
|
|
|
88
|
|
|
return $this; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
/** |
92
|
|
|
* @return int |
93
|
|
|
*/ |
94
|
|
|
public function getMaxObjectDepth() |
95
|
|
|
{ |
96
|
|
|
return $this->maxObjectDepth; |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* @param bool $useNativeJsonEncode |
101
|
|
|
* @return self |
102
|
|
|
*/ |
103
|
|
|
public function setUseNativeJsonEncode($useNativeJsonEncode) |
104
|
|
|
{ |
105
|
|
|
$this->useNativeJsonEncode = $useNativeJsonEncode; |
106
|
|
|
|
107
|
|
|
return $this; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @return bool |
112
|
|
|
*/ |
113
|
|
|
public function getUseNativeJsonEncode() |
114
|
|
|
{ |
115
|
|
|
return $this->useNativeJsonEncode; |
116
|
|
|
} |
117
|
|
|
} |
118
|
|
|
|