Skip to content

Commit 0a8635e

Browse files
committed
Add missing setters for pageSizeW and pageSizeH
1 parent d8fbac6 commit 0a8635e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/PhpWord/Style/Section.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ public function getPageSizeW()
239239
return $this->pageSizeW;
240240
}
241241

242+
public function setPageSizeW($value = null)
243+
{
244+
$this->pageSizeW = $this->setNumericVal($value, self::DEFAULT_WIDTH);
245+
246+
return $this;
247+
}
248+
242249
/**
243250
* Get Page Size Height
244251
*
@@ -249,6 +256,13 @@ public function getPageSizeH()
249256
return $this->pageSizeH;
250257
}
251258

259+
public function setPageSizeH($value = null)
260+
{
261+
$this->pageSizeH = $this->setNumericVal($value, self::DEFAULT_HEIGHT);
262+
263+
return $this;
264+
}
265+
252266
/**
253267
* Get Margin Top
254268
*

0 commit comments

Comments
 (0)