protected function _createItem( array $entry )
	{
		$item = $this->_manager->createItem();

		foreach( $entry as $name => $value )
		{
			switch( $name )
			{
				case 'order.base.coupon.id': $item->setId( $value ); break;
				case 'order.base.coupon.code': $item->setCode( $value ); break;
				case 'order.base.coupon.baseid': $item->setBaseId( $value ); break;
				case 'order.base.coupon.productid': $item->setProductId( $value ); break;
			}
		}

		return $item;
	}
protected function _createItem( array $entry )
	{
		$item = $this->_manager->createItem();

		foreach( $entry as $name => $value )
		{
			switch( $name )
			{
				case 'order.base.coupon.id': $item->setId( $value ); break;
				case 'order.base.coupon.code': $item->setCode( $value ); break;
				case 'order.base.coupon.baseid': $item->setBaseId( $value ); break;
				case 'order.base.coupon.productid': $item->setProductId( $value ); break;
			}
		}

		return $item;
	}
protected function _createItem ( array $ entry ) { $ item = $ this -> _manager -> createItem ( ) ; foreach ( $ entry as $ name => $ value ) { switch ( $ name ) { case 'order.base.coupon.id' : $ item -> setId ( $ value ) ; break ; case 'order.base.coupon.code' : $ item -> setCode ( $ value ) ; break ; case 'order.base.coupon.baseid' : $ item -> setBaseId ( $ value ) ; break ; case 'order.base.coupon.productid' : $ item -> setProductId ( $ value ) ; break ; } } return $ item ; }
Creates a new order base coupon item and sets the properties from the given array.

@param array $entry Associative list of name and value properties using the "order.base.coupon" prefix
@return MShop_Order_Item_Base_Coupon_Interface Order coupon item
Creates a new order base coupon item and sets the properties from the given array .