説明なし

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. * @link https://github.com/PHPOffice/PHPWord
  14. * @copyright 2010-2014 PHPWord contributors
  15. * @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
  16. */
  17. namespace PhpOffice\PhpWord\Style;
  18. /**
  19. * Shadow style
  20. *
  21. * @link http://www.schemacentral.com/sc/ooxml/t-v_CT_Shadow.html
  22. * @since 0.12.0
  23. */
  24. class Shadow extends AbstractStyle
  25. {
  26. /**
  27. * Color
  28. *
  29. * @var string
  30. */
  31. private $color;
  32. /**
  33. * Offset; Format: 3pt,3pt
  34. *
  35. * @var string
  36. */
  37. private $offset;
  38. /**
  39. * Create a new instance
  40. *
  41. * @param array $style
  42. */
  43. public function __construct($style = array())
  44. {
  45. $this->setStyleByArray($style);
  46. }
  47. /**
  48. * Get color
  49. *
  50. * @return string
  51. */
  52. public function getColor()
  53. {
  54. return $this->color;
  55. }
  56. /**
  57. * Set color
  58. *
  59. * @param string $value
  60. * @return self
  61. */
  62. public function setColor($value = null)
  63. {
  64. $this->color = $value;
  65. return $this;
  66. }
  67. /**
  68. * Get offset
  69. *
  70. * @return string
  71. */
  72. public function getOffset()
  73. {
  74. return $this->offset;
  75. }
  76. /**
  77. * Set offset
  78. *
  79. * @param string $value
  80. * @return self
  81. */
  82. public function setOffset($value = null)
  83. {
  84. $this->offset = $value;
  85. return $this;
  86. }
  87. }