ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
CellBorder.php
Go to the documentation of this file.
1<?php
2
4
6
8{
12 protected static $styleMap = [
13 Border::BORDER_NONE => 0x00,
14 Border::BORDER_THIN => 0x01,
20 Border::BORDER_HAIR => 0x07,
27 ];
28
29 public static function style(Border $border): int
30 {
31 $borderStyle = $border->getBorderStyle();
32
33 if (is_string($borderStyle) && array_key_exists($borderStyle, self::$styleMap)) {
34 return self::$styleMap[$borderStyle];
35 }
36
37 return self::$styleMap[Border::BORDER_NONE];
38 }
39}
An exception for terminatinating execution or to throw for unit testing.
$border