| @@ 429-442 (lines=14) @@ | ||
| 426 | return $this->paddingTopBottomRows; |
|
| 427 | } |
|
| 428 | ||
| 429 | public function setPadding(int $topBottom, int $leftRight = null) : self |
|
| 430 | { |
|
| 431 | if ($leftRight === null) { |
|
| 432 | $leftRight = $topBottom; |
|
| 433 | } |
|
| 434 | ||
| 435 | $this->setPaddingTopBottom($topBottom); |
|
| 436 | $this->setPaddingLeftRight($leftRight); |
|
| 437 | ||
| 438 | $this->calculateContentWidth(); |
|
| 439 | $this->generatePaddingTopBottomRows(); |
|
| 440 | ||
| 441 | return $this; |
|
| 442 | } |
|
| 443 | ||
| 444 | public function setPaddingTopBottom(int $topBottom) : self |
|
| 445 | { |
|
| @@ 192-202 (lines=11) @@ | ||
| 189 | return $this; |
|
| 190 | } |
|
| 191 | ||
| 192 | public function setPadding(int $topBottom, int $leftRight = null) : self |
|
| 193 | { |
|
| 194 | if ($leftRight === null) { |
|
| 195 | $leftRight = $topBottom; |
|
| 196 | } |
|
| 197 | ||
| 198 | $this->setPaddingTopBottom($topBottom); |
|
| 199 | $this->setPaddingLeftRight($leftRight); |
|
| 200 | ||
| 201 | return $this; |
|
| 202 | } |
|
| 203 | ||
| 204 | public function setPaddingTopBottom(int $topBottom) : self |
|
| 205 | { |
|