Skip to content

Commit 250562d

Browse files
author
Bas-Jan 't Jong
committed
Added firstPage function and evenPage function to bring Footer Element
in conformity with Header Element
1 parent 4824985 commit 250562d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/PhpWord/Element/Footer.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,24 @@ public function getType()
6161
{
6262
return $this->type;
6363
}
64+
65+
/**
66+
* First page only footer
67+
*
68+
* @return string
69+
*/
70+
public function firstPage()
71+
{
72+
return $this->type = self::FIRST;
73+
}
74+
75+
/**
76+
* Even numbered pages only
77+
*
78+
* @return string
79+
*/
80+
public function evenPage()
81+
{
82+
return $this->type = self::EVEN;
83+
}
6484
}

0 commit comments

Comments
 (0)