| 1 | <?php |
||
| 12 | class Header { |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | public $name; |
||
| 16 | |||
| 17 | /** @var string */ |
||
| 18 | private $_attributeName; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Header constructor. |
||
| 22 | */ |
||
| 23 | 28 | public function __construct(Column $column) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Get the original attribute name. |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | 9 | public function getAttributeName(): string |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @param array $headerFormatters |
||
| 49 | * @param Request $request |
||
| 50 | * @return Header |
||
| 51 | */ |
||
| 52 | 27 | public function formatArray(array $headerFormatters, Request $request): Header |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @param HeaderFormatter $headerFormatter |
||
| 64 | * @param Request $request |
||
| 65 | * @return Header |
||
| 66 | */ |
||
| 67 | 8 | public function format(HeaderFormatter $headerFormatter, Request $request): Header |
|
| 73 | |||
| 74 | /** |
||
| 75 | * @return string |
||
| 76 | */ |
||
| 77 | public function print(): string |
||
| 81 | } |