Skip to content

Commit 4849bb2

Browse files
author
Roman Syroeshko
committed
[FIXED] Dockblocks for #187.
1 parent 5b4ed10 commit 4849bb2

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

src/PhpWord/Writer/Word2007/Document.php

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99

1010
namespace PhpOffice\PhpWord\Writer\Word2007;
1111

12-
use PhpOffice\PhpWord\PhpWord;
13-
use PhpOffice\PhpWord\TOC;
14-
use PhpOffice\PhpWord\Element\Section;
1512
use PhpOffice\PhpWord\Element\PageBreak;
13+
use PhpOffice\PhpWord\Element\Section;
14+
use PhpOffice\PhpWord\Exception\Exception;
15+
use PhpOffice\PhpWord\PhpWord;
1616
use PhpOffice\PhpWord\Shared\XMLWriter;
1717
use PhpOffice\PhpWord\Style\Font;
18+
use PhpOffice\PhpWord\TOC;
1819

1920
/**
2021
* Word2007 document part writer
@@ -24,7 +25,9 @@ class Document extends Base
2425
/**
2526
* Write word/document.xml
2627
*
27-
* @param PhpWord $phpWord
28+
* @param \PhpOffice\PhpWord\PhpWord $phpWord
29+
* @return string
30+
* @throws \PhpOffice\PhpWord\Exception\Exception
2831
*/
2932
public function writeDocument(PhpWord $phpWord = null)
3033
{
@@ -81,8 +84,8 @@ public function writeDocument(PhpWord $phpWord = null)
8184
/**
8285
* Write begin section
8386
*
84-
* @param XMLWriter $xmlWriter
85-
* @param Section $section
87+
* @param \PhpOffice\PhpWord\Shared\XMLWriter $xmlWriter
88+
* @param \PhpOffice\PhpWord\Element\Section $section
8689
*/
8790
private function writeSection(XMLWriter $xmlWriter, Section $section)
8891
{
@@ -96,8 +99,8 @@ private function writeSection(XMLWriter $xmlWriter, Section $section)
9699
/**
97100
* Write end section
98101
*
99-
* @param XMLWriter $xmlWriter
100-
* @param Section $section
102+
* @param \PhpOffice\PhpWord\Shared\XMLWriter $xmlWriter
103+
* @param \PhpOffice\PhpWord\Element\Section $section
101104
*/
102105
private function writeEndSection(XMLWriter $xmlWriter, Section $section)
103106
{
@@ -208,7 +211,8 @@ private function writeEndSection(XMLWriter $xmlWriter, Section $section)
208211
/**
209212
* Write page break element
210213
*
211-
* @param XMLWriter $xmlWriter
214+
* @param \PhpOffice\PhpWord\Shared\XMLWriter $xmlWriter
215+
* @param \PhpOffice\PhpWord\Element\PageBreak $pagebreak
212216
*/
213217
protected function writePageBreak(XMLWriter $xmlWriter, PageBreak $pagebreak)
214218
{
@@ -224,7 +228,8 @@ protected function writePageBreak(XMLWriter $xmlWriter, PageBreak $pagebreak)
224228
/**
225229
* Write TOC element
226230
*
227-
* @param XMLWriter $xmlWriter
231+
* @param \PhpOffice\PhpWord\Shared\XMLWriter $xmlWriter
232+
* @param \PhpOffice\PhpWord\TOC $toc
228233
*/
229234
protected function writeTOC(XMLWriter $xmlWriter, TOC $toc)
230235
{

0 commit comments

Comments
 (0)