10
10
namespace PhpOffice \PhpWord \Writer ;
11
11
12
12
use PhpOffice \PhpWord \PhpWord ;
13
+ use PhpOffice \PhpWord \Style ;
14
+ use PhpOffice \PhpWord \Element \Text ;
13
15
use PhpOffice \PhpWord \Exception \Exception ;
14
16
use PhpOffice \PhpWord \Shared \Drawing ;
15
- use PhpOffice \PhpWord \Style ;
16
17
use PhpOffice \PhpWord \Style \Font ;
17
18
use PhpOffice \PhpWord \Writer \RTF \Element \Element as ElementWriter ;
18
19
@@ -99,23 +100,23 @@ public function getFontTable()
99
100
}
100
101
101
102
/**
102
- * Set last paragraph style
103
+ * Get last paragraph style
103
104
*
104
105
* @param mixed $value
105
106
*/
106
- public function setLastParagraphStyle ( $ value = '' )
107
+ public function getLastParagraphStyle ( )
107
108
{
108
- $ this ->lastParagraphStyle = $ value ;
109
+ return $ this ->lastParagraphStyle ;
109
110
}
110
111
111
112
/**
112
- * Get last paragraph style
113
+ * Set last paragraph style
113
114
*
114
115
* @param mixed $value
115
116
*/
116
- public function getLastParagraphStyle ( )
117
+ public function setLastParagraphStyle ( $ value = '' )
117
118
{
118
- return $ this ->lastParagraphStyle ;
119
+ $ this ->lastParagraphStyle = $ value ;
119
120
}
120
121
121
122
/**
@@ -125,8 +126,8 @@ public function getLastParagraphStyle()
125
126
*/
126
127
private function writeDocument ()
127
128
{
128
- $ this ->fontTable = $ this ->getDataFont ();
129
- $ this ->colorTable = $ this ->getDataColor ();
129
+ $ this ->fontTable = $ this ->populateFontTable ();
130
+ $ this ->colorTable = $ this ->populateColorTable ();
130
131
131
132
// Set the default character set
132
133
$ sRTFContent = '{\rtf1 ' ;
@@ -200,7 +201,7 @@ private function writeContent()
200
201
*
201
202
* @return array
202
203
*/
203
- private function getDataFont ()
204
+ private function populateFontTable ()
204
205
{
205
206
$ phpWord = $ this ->phpWord ;
206
207
@@ -254,7 +255,7 @@ private function getDataFont()
254
255
*
255
256
* @return array
256
257
*/
257
- private function getDataColor ()
258
+ private function populateColorTable ()
258
259
{
259
260
$ phpWord = $ this ->phpWord ;
260
261
0 commit comments