@@ 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 | { |
@@ 255-265 (lines=11) @@ | ||
252 | return $this; |
|
253 | } |
|
254 | ||
255 | public function setPadding(int $topBottom, int $leftRight = null) : self |
|
256 | { |
|
257 | if ($leftRight === null) { |
|
258 | $leftRight = $topBottom; |
|
259 | } |
|
260 | ||
261 | $this->setPaddingTopBottom($topBottom); |
|
262 | $this->setPaddingLeftRight($leftRight); |
|
263 | ||
264 | return $this; |
|
265 | } |
|
266 | ||
267 | public function setPaddingTopBottom(int $topBottom) : self |
|
268 | { |