public function mergeRange($start, $end = null)
    {
        if ($end === null) {
            $end = $this->getNumParts() - 1;
        }

        if ($end <= $start) {
            return $this;
        }

        $mergedParts = implode(
            array_slice($this->identifierParts, $start, $end)
        );
        array_splice($this->identifierParts, $start, $end, $mergedParts);

        return $this;
    }
public function mergeRange($start, $end = null)
    {
        if ($end === null) {
            $end = $this->getNumParts() - 1;
        }

        if ($end <= $start) {
            return $this;
        }

        $mergedParts = implode(
            array_slice($this->identifierParts, $start, $end)
        );
        array_splice($this->identifierParts, $start, $end, $mergedParts);

        return $this;
    }
public function mergeRange ( $ start , $ end = null ) { if ( $ end === null ) { $ end = $ this -> getNumParts ( ) - 1 ; } if ( $ end <= $ start ) { return $ this ; } $ mergedParts = implode ( array_slice ( $ this -> identifierParts , $ start , $ end ) ) ; array_splice ( $ this -> identifierParts , $ start , $ end , $ mergedParts ) ; return $ this ; }
Merge a range of identifier parts into one part

@param int      $start The offset of the first identifier part in the
range to merge
@param int|null $end   The offset of the last identifier part in the
range to merge. Without an ending index, all the remaining identifier
parts will merge

@return $this The current instance of this class for method chaining
Merge a range of identifier parts into one part