src/AmazonPaymentBundle/ReferenceIdMapping/AmazonReferenceIdManager.php
public static function createFromRecordList(array $recordList)
    {
        $manager = null;
        foreach ($recordList as $row) {
            if (null === $manager) {
                $manager = new self($row['amazon_order_reference_id'], $row['shop_order_id']);
            }
            $item = self::createItemFromRow($row);
            $manager->idLists[$item->getType()]->addItem($item);
        }

        return $manager;
    }
public static function createFromRecordList(array $recordList)
    {
        $manager = null;
        foreach ($recordList as $row) {
            if (null === $manager) {
                $manager = new self($row['amazon_order_reference_id'], $row['shop_order_id']);
            }
            $item = self::createItemFromRow($row);
            $manager->idLists[$item->getType()]->addItem($item);
        }

        return $manager;
    }
public static function createFromRecordList ( array $ recordList ) { $ manager = null ; foreach ( $ recordList as $ row ) { if ( null === $ manager ) { $ manager = new self ( $ row [ 'amazon_order_reference_id' ] , $ row [ 'shop_order_id' ] ) ; } $ item = self :: createItemFromRow ( $ row ) ; $ manager -> idLists [ $ item -> getType ( ) ] -> addItem ( $ item ) ; } return $ manager ; }
the items are loaded in the order they are passed - so make sure to provide them in the correct order.

@param array $recordList

@return AmazonReferenceIdManager|null
the items are loaded in the order they are passed - so make sure to provide them in the correct order .