Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class AmountSection |
||
10 | { |
||
11 | private Cell $currencyCell; |
||
12 | private Cell $amountCell; |
||
13 | |||
14 | public function __construct(Cell $cell, float $currencyWidth, float $amountWidth, float $height) |
||
15 | { |
||
16 | $table = $cell->addTable([ |
||
17 | 'layout' => Table::LAYOUT_FIXED, |
||
18 | 'width' => PhpWordHelper::percentToPct(100), |
||
19 | 'unit' => 'pct', |
||
20 | ]); |
||
21 | $row = $table->addRow(PhpWordHelper::mmToTwip($height)); |
||
22 | $this->currencyCell = $row->addCell(PhpWordHelper::mmToTwip($currencyWidth)); |
||
23 | $this->amountCell = $row->addCell(PhpWordHelper::mmToTwip($amountWidth)); |
||
24 | } |
||
25 | |||
26 | public function getCurrencyCell() : Cell |
||
29 | } |
||
30 | |||
31 | public function getAmountCell() : Cell |
||
36 |