Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
7 / 7 |
|
100.00% |
5 / 5 |
CRAP | |
100.00% |
1 / 1 |
Outline | |
100.00% |
7 / 7 |
|
100.00% |
5 / 5 |
5 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getFill | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setFill | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
getWidth | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setWidth | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | /** |
3 | * This file is part of PHPPresentation - A pure PHP library for reading and writing |
4 | * presentations documents. |
5 | * |
6 | * PHPPresentation 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/PHPPresentation/contributors. |
12 | * |
13 | * @see https://github.com/PHPOffice/PHPPresentation |
14 | * |
15 | * @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3 |
16 | */ |
17 | |
18 | declare(strict_types=1); |
19 | |
20 | namespace PhpOffice\PhpPresentation\Style; |
21 | |
22 | /** |
23 | * \PhpOffice\PhpPresentation\Style\Outline. |
24 | */ |
25 | class Outline |
26 | { |
27 | /** |
28 | * @var Fill |
29 | */ |
30 | protected $fill; |
31 | |
32 | /** |
33 | * @var int |
34 | */ |
35 | protected $width = 1; |
36 | |
37 | public function __construct() |
38 | { |
39 | $this->fill = new Fill(); |
40 | } |
41 | |
42 | public function getFill(): Fill |
43 | { |
44 | return $this->fill; |
45 | } |
46 | |
47 | public function setFill(Fill $fill): self |
48 | { |
49 | $this->fill = $fill; |
50 | |
51 | return $this; |
52 | } |
53 | |
54 | /** |
55 | * Value in pixels. |
56 | */ |
57 | public function getWidth(): int |
58 | { |
59 | return $this->width; |
60 | } |
61 | |
62 | /** |
63 | * Value in pixels. |
64 | */ |
65 | public function setWidth(int $pValue = 1): self |
66 | { |
67 | $this->width = $pValue; |
68 | |
69 | return $this; |
70 | } |
71 | } |