public function with($index, $value)
    {
        $res = clone $this;

        $res->fragments = $this->insertInList($res->fragments, $index, $value);

        return $this;
    }
public function with($index, $value)
    {
        $res = clone $this;

        $res->fragments = $this->insertInList($res->fragments, $index, $value);

        return $this;
    }
public function with ( $ index , $ value ) { $ res = clone $ this ; $ res -> fragments = $ this -> insertInList ( $ res -> fragments , $ index , $ value ) ; return $ this ; }
Set time fragment, adding null fragments if needed.

@param integer      $index
@param integer|null $value
Set time fragment adding null fragments if needed .