original_string: public function withFragments(array $fragments)
      {
          $res = clone $this;
  
          $res->fragments = $res->fillArrayInput($fragments);
  
          return $res;
      }
code: public function withFragments(array $fragments)
      {
          $res = clone $this;
  
          $res->fragments = $res->fillArrayInput($fragments);
  
          return $res;
      }
code_tokens: public function withFragments ( array $ fragments ) { $ res = clone $ this ; $ res -> fragments = $ res -> fillArrayInput ( $ fragments ) ; return $ res ; }
docstring: Set all fragments, adding null fragments if needed.
  
  @param array<integer|null> $fragments
  
  @return static a new instance.
docstring_tokens: Set all fragments adding null fragments if needed .