1 | <?php |
||
5 | class Border extends BasicTerminalObject |
||
6 | { |
||
7 | /** |
||
8 | * The character to repeat for the border |
||
9 | * |
||
10 | * @var string $char |
||
11 | */ |
||
12 | protected $char = '-'; |
||
13 | |||
14 | /** |
||
15 | * The length of the border |
||
16 | * |
||
17 | * @var integer $length |
||
18 | */ |
||
19 | protected $length; |
||
20 | |||
21 | 44 | public function __construct($char = null, $length = null) |
|
25 | |||
26 | /** |
||
27 | * Set the character to repeat for the border |
||
28 | * |
||
29 | * @param string $char |
||
30 | * |
||
31 | * @return Border |
||
32 | */ |
||
33 | 44 | public function char($char) |
|
39 | |||
40 | /** |
||
41 | * Set the length of the border |
||
42 | * |
||
43 | * @param integer $length |
||
44 | * |
||
45 | * @return Border |
||
46 | */ |
||
47 | 44 | public function length($length) |
|
53 | |||
54 | /** |
||
55 | * Return the border |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | 44 | public function result() |
|
67 | } |
||
68 |