protected function _createAttribute( MShop_Order_Item_Base_Product_Interface $product, $code, $value, $name = null )
	{
		if( $product->getAttribute( $code ) !== null ) {
			return null;
		}

		$new = $this->_orderAttrManager->createItem();
		$new->setCode( $code );
		$new->setType( $this->_type );
		$new->setName( $name );
		$new->setValue( $value );

		return $new;
	}
protected function _createAttribute( MShop_Order_Item_Base_Product_Interface $product, $code, $value, $name = null )
	{
		if( $product->getAttribute( $code ) !== null ) {
			return null;
		}

		$new = $this->_orderAttrManager->createItem();
		$new->setCode( $code );
		$new->setType( $this->_type );
		$new->setName( $name );
		$new->setValue( $value );

		return $new;
	}
protected function _createAttribute ( MShop_Order_Item_Base_Product_Interface $ product , $ code , $ value , $ name = null ) { if ( $ product -> getAttribute ( $ code ) !== null ) { return null ; } $ new = $ this -> _orderAttrManager -> createItem ( ) ; $ new -> setCode ( $ code ) ; $ new -> setType ( $ this -> _type ) ; $ new -> setName ( $ name ) ; $ new -> setValue ( $ value ) ; return $ new ; }
Creates an attribute with given values for code, type, name and value

@param String $code Value for attribute code
@param String $value Value for attribute value
@param String $name Optional value for attribute name
@return MShop_Order_Item_Base_Product_Attribute_Interface Newly created attribte item
Creates an attribute with given values for code type name and value