9
9
10
10
namespace PhpOffice \PhpWord \Writer \Word2007 ;
11
11
12
- use PhpOffice \PhpWord \PhpWord ;
13
- use PhpOffice \PhpWord \TOC ;
14
- use PhpOffice \PhpWord \Element \Section ;
15
12
use PhpOffice \PhpWord \Element \PageBreak ;
13
+ use PhpOffice \PhpWord \Element \Section ;
14
+ use PhpOffice \PhpWord \Exception \Exception ;
15
+ use PhpOffice \PhpWord \PhpWord ;
16
16
use PhpOffice \PhpWord \Shared \XMLWriter ;
17
17
use PhpOffice \PhpWord \Style \Font ;
18
+ use PhpOffice \PhpWord \TOC ;
18
19
19
20
/**
20
21
* Word2007 document part writer
@@ -24,7 +25,9 @@ class Document extends Base
24
25
/**
25
26
* Write word/document.xml
26
27
*
27
- * @param PhpWord $phpWord
28
+ * @param \PhpOffice\PhpWord\PhpWord $phpWord
29
+ * @return string
30
+ * @throws \PhpOffice\PhpWord\Exception\Exception
28
31
*/
29
32
public function writeDocument (PhpWord $ phpWord = null )
30
33
{
@@ -81,8 +84,8 @@ public function writeDocument(PhpWord $phpWord = null)
81
84
/**
82
85
* Write begin section
83
86
*
84
- * @param XMLWriter $xmlWriter
85
- * @param Section $section
87
+ * @param \PhpOffice\PhpWord\Shared\ XMLWriter $xmlWriter
88
+ * @param \PhpOffice\PhpWord\Element\ Section $section
86
89
*/
87
90
private function writeSection (XMLWriter $ xmlWriter , Section $ section )
88
91
{
@@ -96,8 +99,8 @@ private function writeSection(XMLWriter $xmlWriter, Section $section)
96
99
/**
97
100
* Write end section
98
101
*
99
- * @param XMLWriter $xmlWriter
100
- * @param Section $section
102
+ * @param \PhpOffice\PhpWord\Shared\ XMLWriter $xmlWriter
103
+ * @param \PhpOffice\PhpWord\Element\ Section $section
101
104
*/
102
105
private function writeEndSection (XMLWriter $ xmlWriter , Section $ section )
103
106
{
@@ -208,7 +211,8 @@ private function writeEndSection(XMLWriter $xmlWriter, Section $section)
208
211
/**
209
212
* Write page break element
210
213
*
211
- * @param XMLWriter $xmlWriter
214
+ * @param \PhpOffice\PhpWord\Shared\XMLWriter $xmlWriter
215
+ * @param \PhpOffice\PhpWord\Element\PageBreak $pagebreak
212
216
*/
213
217
protected function writePageBreak (XMLWriter $ xmlWriter , PageBreak $ pagebreak )
214
218
{
@@ -224,7 +228,8 @@ protected function writePageBreak(XMLWriter $xmlWriter, PageBreak $pagebreak)
224
228
/**
225
229
* Write TOC element
226
230
*
227
- * @param XMLWriter $xmlWriter
231
+ * @param \PhpOffice\PhpWord\Shared\XMLWriter $xmlWriter
232
+ * @param \PhpOffice\PhpWord\TOC $toc
228
233
*/
229
234
protected function writeTOC (XMLWriter $ xmlWriter , TOC $ toc )
230
235
{
0 commit comments