Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
Compatibility | |
100.00% |
3 / 3 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
getOoxmlVersion | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setOoxmlVersion | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | /** |
4 | * This file is part of PHPWord - A pure PHP library for reading and writing |
5 | * word processing documents. |
6 | * |
7 | * PHPWord is free software distributed under the terms of the GNU Lesser |
8 | * General Public License version 3 as published by the Free Software Foundation. |
9 | * |
10 | * For the full copyright and license information, please read the LICENSE |
11 | * file that was distributed with this source code. For the full list of |
12 | * contributors, visit https://github.com/PHPOffice/PHPWord/contributors. |
13 | * |
14 | * @see https://github.com/PHPOffice/PHPWord |
15 | * |
16 | * @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3 |
17 | */ |
18 | |
19 | namespace PhpOffice\PhpWord\Metadata; |
20 | |
21 | /** |
22 | * Compatibility setting class. |
23 | * |
24 | * @since 0.12.0 |
25 | * @see http://www.datypic.com/sc/ooxml/t-w_CT_Compat.html |
26 | */ |
27 | class Compatibility |
28 | { |
29 | /** |
30 | * OOXML version. |
31 | * |
32 | * 12 = 2007 |
33 | * 14 = 2010 |
34 | * 15 = 2013 |
35 | * |
36 | * @var int |
37 | * |
38 | * @see http://msdn.microsoft.com/en-us/library/dd909048%28v=office.12%29.aspx |
39 | */ |
40 | private $ooxmlVersion = 12; |
41 | |
42 | /** |
43 | * Get OOXML version. |
44 | * |
45 | * @return int |
46 | */ |
47 | public function getOoxmlVersion() |
48 | { |
49 | return $this->ooxmlVersion; |
50 | } |
51 | |
52 | /** |
53 | * Set OOXML version. |
54 | * |
55 | * @param int $value |
56 | * |
57 | * @return self |
58 | */ |
59 | public function setOoxmlVersion($value) |
60 | { |
61 | $this->ooxmlVersion = $value; |
62 | |
63 | return $this; |
64 | } |
65 | } |