| 1 | <?php |
||
| 14 | class TranslateHeader implements HeaderFormatter { |
||
| 15 | |||
| 16 | /** @var array */ |
||
| 17 | private $_translations; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * TranslatableHeader constructor. |
||
| 21 | * @param array $translations |
||
| 22 | */ |
||
| 23 | 1 | public function __construct(array $translations) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Format the given header. |
||
| 30 | * For example add a link to sort by this header/column. |
||
| 31 | * |
||
| 32 | * @param Header $header |
||
| 33 | * @param Request $request |
||
| 34 | */ |
||
| 35 | 1 | public function format(Header $header, Request $request) |
|
| 44 | } |