Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Header | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
addWatermark | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | /** |
3 | * This file is part of PHPWord - A pure PHP library for reading and writing |
4 | * word processing documents. |
5 | * |
6 | * PHPWord is free software distributed under the terms of the GNU Lesser |
7 | * General Public License version 3 as published by the Free Software Foundation. |
8 | * |
9 | * For the full copyright and license information, please read the LICENSE |
10 | * file that was distributed with this source code. For the full list of |
11 | * contributors, visit https://github.com/PHPOffice/PHPWord/contributors. |
12 | * |
13 | * @see https://github.com/PHPOffice/PHPWord |
14 | * |
15 | * @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3 |
16 | */ |
17 | |
18 | namespace PhpOffice\PhpWord\Element; |
19 | |
20 | /** |
21 | * Header element. |
22 | */ |
23 | class Header extends Footer |
24 | { |
25 | /** |
26 | * @var string Container type |
27 | */ |
28 | protected $container = 'Header'; |
29 | |
30 | /** |
31 | * Add a Watermark Element. |
32 | * |
33 | * @param string $src |
34 | * @param mixed $style |
35 | * |
36 | * @return Image |
37 | */ |
38 | public function addWatermark($src, $style = null) |
39 | { |
40 | return $this->addImage($src, $style, true); |
41 | } |
42 | } |