From 250562ddd6b86a7aa38c2103de2ba1236cf38f0f Mon Sep 17 00:00:00 2001 From: Bas-Jan 't Jong Date: Sun, 4 May 2014 17:59:58 +0200 Subject: [PATCH] Added firstPage function and evenPage function to bring Footer Element in conformity with Header Element --- src/PhpWord/Element/Footer.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/PhpWord/Element/Footer.php b/src/PhpWord/Element/Footer.php index 1df69c29..2c42a087 100644 --- a/src/PhpWord/Element/Footer.php +++ b/src/PhpWord/Element/Footer.php @@ -61,4 +61,24 @@ class Footer extends AbstractContainer { return $this->type; } + + /** + * First page only footer + * + * @return string + */ + public function firstPage() + { + return $this->type = self::FIRST; + } + + /** + * Even numbered pages only + * + * @return string + */ + public function evenPage() + { + return $this->type = self::EVEN; + } }