See Release Notes
Long Term Support Release
Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401]
1 <?php 2 3 namespace PhpOffice\PhpSpreadsheet\Reader\Xlsx; 4 5 class Theme 6 { 7 /** 8 * Theme Name. 9 * 10 * @var string 11 */ 12 private $themeName; 13 14 /** 15 * Colour Scheme Name. 16 * 17 * @var string 18 */ 19 private $colourSchemeName; 20 21 /** 22 * Colour Map. 23 * 24 * @var string[] 25 */ 26 private $colourMap; 27 28 /** 29 * Create a new Theme. 30 * 31 * @param string $themeName 32 * @param string $colourSchemeName 33 * @param string[] $colourMap 34 */ 35 public function __construct($themeName, $colourSchemeName, $colourMap) 36 { 37 // Initialise values 38 $this->themeName = $themeName; 39 $this->colourSchemeName = $colourSchemeName; 40 $this->colourMap = $colourMap; 41 } 42 43 /** 44 * Not called by Reader, never accessible any other time. 45 * 46 * @return string 47 * 48 * @codeCoverageIgnore 49 */ 50 public function getThemeName() 51 { 52 return $this->themeName; 53 } 54 55 /** 56 * Not called by Reader, never accessible any other time. 57 * 58 * @return string 59 * 60 * @codeCoverageIgnore 61 */ 62 public function getColourSchemeName() 63 { 64 return $this->colourSchemeName; 65 } 66 67 /** 68 * Get colour Map Value by Position. 69 * 70 * @param int $index 71 * 72 * @return null|string 73 */ 74 public function getColourByIndex($index) 75 { 76 return $this->colourMap[$index] ?? null; 77 } 78 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body