Skip to content
Closed
Prev Previous commit
Next Next commit
Add missing setters for pageSizeW and pageSizeH
  • Loading branch information
spikex committed Sep 22, 2014
commit 0a8635ece80dbb6f2dcf94f808f0fa8769be4546
14 changes: 14 additions & 0 deletions src/PhpWord/Style/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,13 @@ public function getPageSizeW()
return $this->pageSizeW;
}

public function setPageSizeW($value = null)
{
$this->pageSizeW = $this->setNumericVal($value, self::DEFAULT_WIDTH);

return $this;
}

/**
* Get Page Size Height
*
Expand All @@ -249,6 +256,13 @@ public function getPageSizeH()
return $this->pageSizeH;
}

public function setPageSizeH($value = null)
{
$this->pageSizeH = $this->setNumericVal($value, self::DEFAULT_HEIGHT);

return $this;
}

/**
* Get Margin Top
*
Expand Down