| @@ 425-438 (lines=14) @@ | ||
| 422 | return $this->paddingTopBottomRows; |
|
| 423 | } |
|
| 424 | ||
| 425 | public function setPadding(int $topBottom, int $leftRight = null) : self |
|
| 426 | { |
|
| 427 | if ($leftRight === null) { |
|
| 428 | $leftRight = $topBottom; |
|
| 429 | } |
|
| 430 | ||
| 431 | $this->setPaddingTopBottom($topBottom); |
|
| 432 | $this->setPaddingLeftRight($leftRight); |
|
| 433 | ||
| 434 | $this->calculateContentWidth(); |
|
| 435 | $this->generatePaddingTopBottomRows(); |
|
| 436 | ||
| 437 | return $this; |
|
| 438 | } |
|
| 439 | ||
| 440 | public function setPaddingTopBottom(int $topBottom) : self |
|
| 441 | { |
|
| @@ 242-252 (lines=11) @@ | ||
| 239 | return $this; |
|
| 240 | } |
|
| 241 | ||
| 242 | public function setPadding(int $topBottom, int $leftRight = null) : self |
|
| 243 | { |
|
| 244 | if ($leftRight === null) { |
|
| 245 | $leftRight = $topBottom; |
|
| 246 | } |
|
| 247 | ||
| 248 | $this->setPaddingTopBottom($topBottom); |
|
| 249 | $this->setPaddingLeftRight($leftRight); |
|
| 250 | ||
| 251 | return $this; |
|
| 252 | } |
|
| 253 | ||
| 254 | public function setPaddingTopBottom(int $topBottom) : self |
|
| 255 | { |
|