public function withFragments(array $fragments)
    {
        $res = clone $this;

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

        return $res;
    }
public function withFragments(array $fragments)
    {
        $res = clone $this;

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

        return $res;
    }
public function withFragments ( array $ fragments ) { $ res = clone $ this ; $ res -> fragments = $ res -> fillArrayInput ( $ fragments ) ; return $ res ; }
Set all fragments, adding null fragments if needed.

@param array<integer|null> $fragments

@return static a new instance.
Set all fragments adding null fragments if needed .