| 1 | <?php |
||
| 5 | class Border |
||
| 6 | { |
||
| 7 | const LEFT = 'left'; |
||
| 8 | const RIGHT = 'right'; |
||
| 9 | const TOP = 'top'; |
||
| 10 | const BOTTOM = 'bottom'; |
||
| 11 | |||
| 12 | const STYLE_NONE = 'none'; |
||
| 13 | const STYLE_SOLID = 'solid'; |
||
| 14 | const STYLE_DASHED = 'dashed'; |
||
| 15 | const STYLE_DOTTED = 'dotted'; |
||
| 16 | const STYLE_DOUBLE = 'double'; |
||
| 17 | |||
| 18 | const WIDTH_THIN = 'thin'; |
||
| 19 | const WIDTH_MEDIUM = 'medium'; |
||
| 20 | const WIDTH_THICK = 'thick'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var array A list of BorderPart objects for this border. |
||
| 24 | */ |
||
| 25 | protected $parts = []; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param array $borderParts |
||
| 29 | */ |
||
| 30 | public function __construct(array $borderParts = []) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | public function getParts() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Set BorderParts |
||
| 45 | * @param array $parts |
||
| 46 | */ |
||
| 47 | public function setParts($parts) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param BorderPart $borderPart |
||
| 57 | * @return self |
||
| 58 | */ |
||
| 59 | public function addPart(BorderPart $borderPart) |
||
| 64 | } |
||
| 65 |