Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
Compatibility
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 getOoxmlVersion
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setOoxmlVersion
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
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
18namespace PhpOffice\PhpWord\Metadata;
19
20/**
21 * Compatibility setting class.
22 *
23 * @since 0.12.0
24 * @see  http://www.datypic.com/sc/ooxml/t-w_CT_Compat.html
25 */
26class Compatibility
27{
28    /**
29     * OOXML version.
30     *
31     * 12 = 2007
32     * 14 = 2010
33     * 15 = 2013
34     *
35     * @var int
36     *
37     * @see  http://msdn.microsoft.com/en-us/library/dd909048%28v=office.12%29.aspx
38     */
39    private $ooxmlVersion = 12;
40
41    /**
42     * Get OOXML version.
43     *
44     * @return int
45     */
46    public function getOoxmlVersion()
47    {
48        return $this->ooxmlVersion;
49    }
50
51    /**
52     * Set OOXML version.
53     *
54     * @param int $value
55     *
56     * @return self
57     */
58    public function setOoxmlVersion($value)
59    {
60        $this->ooxmlVersion = $value;
61
62        return $this;
63    }
64}