public function withTransversals(array $transversals)
    {
        $res = clone $this;

        $res->transversals = $res->fillArrayInput($transversals);

        return $res;
    }
public function withTransversals(array $transversals)
    {
        $res = clone $this;

        $res->transversals = $res->fillArrayInput($transversals);

        return $res;
    }
public function withTransversals ( array $ transversals ) { $ res = clone $ this ; $ res -> transversals = $ res -> fillArrayInput ( $ transversals ) ; return $ res ; }
Set all transversal units, adding null values if needed.

@param array<integer|null> $transversals

@return static a new instance.
Set all transversal units adding null values if needed .