| 1 | <?php |
||
| 21 | final class Alignment |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Alignment: Align a cell to the left. |
||
| 25 | */ |
||
| 26 | const LEFT = 0; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Alignment: Align a cell to the right. |
||
| 30 | */ |
||
| 31 | const RIGHT = 1; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Alignment: Align a cell to the center. |
||
| 35 | */ |
||
| 36 | const CENTER = 2; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Returns all possible alignments. |
||
| 40 | * |
||
| 41 | * @return int[] A list of valid alignment constants. |
||
| 42 | */ |
||
| 43 | 3 | public static function all() |
|
| 44 | { |
||
| 45 | return array( |
||
| 46 | 3 | self::LEFT, |
|
| 47 | 3 | self::RIGHT, |
|
| 48 | 3 | self::CENTER, |
|
| 49 | ); |
||
| 50 | } |
||
| 51 | |||
| 52 | private function __construct() |
||
| 55 | } |
||
| 56 |