diff --git a/README.md b/README.md index 34114316..86554a50 100755 --- a/README.md +++ b/README.md @@ -154,11 +154,13 @@ $myParcelCollection ->addConsignment($consignment) ->setLatestData(); -$consignment = $myParcelCollection - ->getOneConsignment(); +$consignments = $myParcelCollection + ->getConsignments(); -$status = $consignment->getStatus(); -$barcode = $consignment->getBarcode(); +$firstConsignment = $consignments[0]; + +$status = $firstConsignment->getStatus(); +$barcode = $firstConsignment->getBarcode(); ``` ### Contribute