| @@ 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 | { |
|
| @@ 193-203 (lines=11) @@ | ||
| 190 | return $this; |
|
| 191 | } |
|
| 192 | ||
| 193 | public function setPadding(int $topBottom, int $leftRight = null) : self |
|
| 194 | { |
|
| 195 | if ($leftRight === null) { |
|
| 196 | $leftRight = $topBottom; |
|
| 197 | } |
|
| 198 | ||
| 199 | $this->setPaddingTopBottom($topBottom); |
|
| 200 | $this->setPaddingLeftRight($leftRight); |
|
| 201 | ||
| 202 | return $this; |
|
| 203 | } |
|
| 204 | ||
| 205 | public function setPaddingTopBottom(int $topBottom) : self |
|
| 206 | { |
|