1 | <?php |
||
9 | abstract class CellAlignment |
||
10 | { |
||
11 | const LEFT = 'left'; |
||
12 | const RIGHT = 'right'; |
||
13 | const CENTER = 'center'; |
||
14 | const JUSTIFY = 'justify'; |
||
15 | |||
16 | private static $VALID_ALIGNMENTS = [ |
||
17 | self::LEFT => 1, |
||
18 | self::RIGHT => 1, |
||
19 | self::CENTER => 1, |
||
20 | self::JUSTIFY => 1, |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * @param string $cellAlignment |
||
25 | * |
||
26 | * @return bool Whether the given cell alignment is valid |
||
27 | */ |
||
28 | 4 | public static function isValid($cellAlignment) |
|
32 | } |
||
33 |