| 1 | <?php |
||
| 8 | class Border |
||
| 9 | { |
||
| 10 | const LEFT = 'left'; |
||
| 11 | const RIGHT = 'right'; |
||
| 12 | const TOP = 'top'; |
||
| 13 | const BOTTOM = 'bottom'; |
||
| 14 | |||
| 15 | const STYLE_NONE = 'none'; |
||
| 16 | const STYLE_SOLID = 'solid'; |
||
| 17 | const STYLE_DASHED = 'dashed'; |
||
| 18 | const STYLE_DOTTED = 'dotted'; |
||
| 19 | const STYLE_DOUBLE = 'double'; |
||
| 20 | |||
| 21 | const WIDTH_THIN = 'thin'; |
||
| 22 | const WIDTH_MEDIUM = 'medium'; |
||
| 23 | const WIDTH_THICK = 'thick'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var array A list of BorderPart objects for this border. |
||
| 27 | */ |
||
| 28 | protected $parts = []; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param array|void $borderParts |
||
| 32 | */ |
||
| 33 | public function __construct(array $borderParts = []) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | public function getParts() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Set BorderParts |
||
| 48 | * @param array $parts |
||
| 49 | */ |
||
| 50 | public function setParts($parts) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param BorderPart $borderPart |
||
| 60 | * @return self |
||
| 61 | */ |
||
| 62 | public function addPart(BorderPart $borderPart) |
||
| 67 | } |
||
| 68 |