public function offsetSet($offset, $segment)
	{
		if (is_null($offset)) {
			$this->segments[] = (string) $segment;
		} else {
			$this->segments[$offset] = (string) $segment;
		}
	}
public function offsetSet($offset, $segment)
	{
		if (is_null($offset)) {
			$this->segments[] = (string) $segment;
		} else {
			$this->segments[$offset] = (string) $segment;
		}
	}
public function offsetSet ( $ offset , $ segment ) { if ( is_null ( $ offset ) ) { $ this -> segments [ ] = ( string ) $ segment ; } else { $ this -> segments [ $ offset ] = ( string ) $ segment ; } }
Set the segment at a given offset.

@param  mixed  $offset
@param  mixed  $segment
@return void
Set the segment at a given offset .