1 | <?php |
||
5 | class PadArray extends Padding |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * If they pass in a padding character, set the char |
||
10 | * |
||
11 | * @param array $data |
||
12 | * @param string $char The character to use for padding |
||
13 | */ |
||
14 | public function __construct(array $data, $char = null) |
||
25 | |||
26 | |||
27 | /** |
||
28 | * Convert every key/value in the array to a string |
||
29 | * |
||
30 | * @param array $data |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | protected function convertValuesToStrings(array $data) |
||
61 | |||
62 | |||
63 | /** |
||
64 | * Get the length of the longest string so we know how much padding we need |
||
65 | * |
||
66 | * @param string[] $keys |
||
67 | * |
||
68 | * @return int |
||
69 | */ |
||
70 | protected function getMaxStringLength(array $keys) |
||
84 | } |
||
85 |