21
21
22
22
final class Config
23
23
{
24
- /**
25
- * @var string
26
- */
24
+ /** @var string */
27
25
const PAPER_ORIENTATION_LANDSCAPE = 'landscape ' ;
28
26
29
- /**
30
- * @var string
31
- */
27
+ /** @var string */
32
28
const PAPER_ORIENTATION_PORTRAIT = 'portrait ' ;
33
29
34
30
/**
@@ -37,30 +33,23 @@ final class Config
37
33
*/
38
34
private $ pdfSize = 'a4 ' ;
39
35
40
- /**
41
- * @var string
42
- */
36
+ /** @var string */
43
37
private $ pdfOrientation ;
44
38
45
- /**
46
- * @var string
47
- */
39
+ /** @var string */
48
40
private $ pdfAuthor = '' ;
49
41
50
- /**
51
- * @var string
52
- */
42
+ /** @var string */
53
43
private $ pdfTitle = '' ;
54
44
55
- /**
56
- * @var boolean
57
- */
45
+ /** @var boolean */
58
46
private $ isDebugMode = false ;
59
47
60
- /**
61
- * @var string
62
- */
63
- private $ tempDir = '' ;
48
+ /** @var string */
49
+ private $ tempDir ;
50
+
51
+ /** @var string */
52
+ private $ chrootDir = '/ ' ;
64
53
65
54
public function __construct ()
66
55
{
@@ -113,14 +102,21 @@ public function getTempDir()
113
102
return $ this ->tempDir ;
114
103
}
115
104
105
+ /**
106
+ * @return string
107
+ */
108
+ public function getChrootDir ()
109
+ {
110
+ return $ this ->chrootDir ;
111
+ }
112
+
116
113
/**
117
114
* @param string $pdfSize
118
115
* @return Config
119
116
*/
120
117
public function setPdfSize ($ pdfSize )
121
118
{
122
119
$ this ->pdfSize = $ pdfSize ;
123
-
124
120
return $ this ;
125
121
}
126
122
@@ -131,7 +127,6 @@ public function setPdfSize($pdfSize)
131
127
public function setPdfOrientation ($ pdfOrientation )
132
128
{
133
129
$ this ->pdfOrientation = $ pdfOrientation ;
134
-
135
130
return $ this ;
136
131
}
137
132
@@ -142,7 +137,6 @@ public function setPdfOrientation($pdfOrientation)
142
137
public function setPdfAuthor ($ pdfAuthor )
143
138
{
144
139
$ this ->pdfAuthor = $ pdfAuthor ;
145
-
146
140
return $ this ;
147
141
}
148
142
@@ -153,7 +147,6 @@ public function setPdfAuthor($pdfAuthor)
153
147
public function setPdfTitle ($ pdfTitle )
154
148
{
155
149
$ this ->pdfTitle = $ pdfTitle ;
156
-
157
150
return $ this ;
158
151
}
159
152
@@ -164,7 +157,6 @@ public function setPdfTitle($pdfTitle)
164
157
public function setIsDebugMode ($ isDebugMode )
165
158
{
166
159
$ this ->isDebugMode = $ isDebugMode ;
167
-
168
160
return $ this ;
169
161
}
170
162
@@ -175,7 +167,17 @@ public function setIsDebugMode($isDebugMode)
175
167
public function setTempDir ($ tempDir )
176
168
{
177
169
$ this ->tempDir = $ tempDir ;
170
+ return $ this ;
171
+ }
178
172
173
+ /**
174
+ * @param string $chrootDir
175
+ *
176
+ * @return $this
177
+ */
178
+ public function setChrootDir ($ chrootDir )
179
+ {
180
+ $ this ->chrootDir = $ chrootDir ;
179
181
return $ this ;
180
182
}
181
183
}
0 commit comments