Compatibility.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. * @copyright 2010-2018 PHPWord contributors
  15. * @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
  16. */
  17. namespace PhpOffice\PhpWord\Metadata;
  18. /**
  19. * Compatibility setting class
  20. *
  21. * @since 0.12.0
  22. * @see http://www.datypic.com/sc/ooxml/t-w_CT_Compat.html
  23. */
  24. class Compatibility
  25. {
  26. /**
  27. * OOXML version
  28. *
  29. * 12 = 2007
  30. * 14 = 2010
  31. * 15 = 2013
  32. *
  33. * @var int
  34. * @see http://msdn.microsoft.com/en-us/library/dd909048%28v=office.12%29.aspx
  35. */
  36. private $ooxmlVersion = 12;
  37. /**
  38. * Get OOXML version
  39. *
  40. * @return int
  41. */
  42. public function getOoxmlVersion()
  43. {
  44. return $this->ooxmlVersion;
  45. }
  46. /**
  47. * Set OOXML version
  48. *
  49. * @param int $value
  50. * @return self
  51. */
  52. public function setOoxmlVersion($value)
  53. {
  54. $this->ooxmlVersion = $value;
  55. return $this;
  56. }
  57. }