maj even/odd
This commit is contained in:
parent
71ca020b1e
commit
19a3cb9b76
@ -234,11 +234,11 @@ class SpoutBuilder extends AbstractBuilder {
|
|||||||
|
|
||||||
protected ?bool $differentOddEven = null;
|
protected ?bool $differentOddEven = null;
|
||||||
|
|
||||||
protected int $oddEvenIndex = 1;
|
protected int $oddEvenIndex = 0;
|
||||||
|
|
||||||
function setDifferentOddEven(bool $differentOddEven, bool $startWithOdd=true): self {
|
function setDifferentOddEven(bool $differentOddEven, ?bool $startWithOdd=null): self {
|
||||||
$this->differentOddEven = $differentOddEven;
|
$this->differentOddEven = $differentOddEven;
|
||||||
if ($differentOddEven) $this->oddEvenIndex = $startWithOdd? 1: 0;
|
if ($differentOddEven && $startWithOdd !== null) $this->oddEvenIndex = $startWithOdd? 1: 0;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user