1 | <?php |
||
22 | class BorderHelper |
||
23 | { |
||
24 | /** |
||
25 | * Width mappings |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | protected static $widthMap = [ |
||
30 | Border::WIDTH_THIN => '0.75pt', |
||
31 | Border::WIDTH_MEDIUM => '1.75pt', |
||
32 | Border::WIDTH_THICK => '2.5pt', |
||
33 | ]; |
||
34 | |||
35 | /** |
||
36 | * Style mapping |
||
37 | * |
||
38 | * @var array |
||
39 | */ |
||
40 | protected static $styleMap = [ |
||
41 | Border::STYLE_SOLID => 'solid', |
||
42 | Border::STYLE_DASHED => 'dashed', |
||
43 | Border::STYLE_DOTTED => 'dotted', |
||
44 | Border::STYLE_DOUBLE => 'double', |
||
45 | ]; |
||
46 | |||
47 | /** |
||
48 | * @param BorderPart $borderPart |
||
49 | * @return string |
||
50 | */ |
||
51 | 1 | public static function serializeBorderPart(BorderPart $borderPart) |
|
68 | } |
||
69 |