src/Alg/Parcel/Packer.php
public function replacePacket( $index, $packet )
	{
		if( !isset( $this->packetList[$index] ) )
			throw new OutOfRangeException( 'Invalid Packet Index.' );
		$this->packetList[$index]	= $packet;
	}
public function replacePacket( $index, $packet )
	{
		if( !isset( $this->packetList[$index] ) )
			throw new OutOfRangeException( 'Invalid Packet Index.' );
		$this->packetList[$index]	= $packet;
	}
public function replacePacket ( $ index , $ packet ) { if ( ! isset ( $ this -> packetList [ $ index ] ) ) throw new OutOfRangeException ( 'Invalid Packet Index.' ) ; $ this -> packetList [ $ index ] = $ packet ; }
Replaces a Packet from current Packet List with another Packet.
@access		public
@param		int					$index		Index of Packet to replace
@param		Alg_Parcel_packet	$packet		Packet to set for another Packet
@return		void
Replaces a Packet from current Packet List with another Packet .