| 1 | <?php  | 
            ||
| 13 | class StyleRegistry extends \Box\Spout\Writer\Common\Manager\Style\StyleRegistry  | 
            ||
| 14 | { | 
            ||
| 15 | /** @var string[] [FONT_NAME] => [] Map whose keys contain all the fonts used */  | 
            ||
| 16 | protected $usedFontsSet = [];  | 
            ||
| 17 | |||
| 18 | /**  | 
            ||
| 19 | * Registers the given style as a used style.  | 
            ||
| 20 | * Duplicate styles won't be registered more than once.  | 
            ||
| 21 | *  | 
            ||
| 22 | * @param Style $style The style to be registered  | 
            ||
| 23 | * @return Style The registered style, updated with an internal ID.  | 
            ||
| 24 | */  | 
            ||
| 25 | 44 | public function registerStyle(Style $style)  | 
            |
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * @return string[] List of used fonts name  | 
            ||
| 33 | */  | 
            ||
| 34 | 35 | public function getUsedFonts()  | 
            |
| 38 | }  | 
            ||
| 39 |