Skip to content

Commit

Permalink
Merge pull request #50 from myparcelnl/reindert-vetter-patch-2
Browse files Browse the repository at this point in the history
Update Readme.md remove getOneConsignment()
  • Loading branch information
Reindert authored Apr 4, 2018
2 parents 0b1c9f5 + 0a15c6a commit ecb99b4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ecb99b4

Please sign in to comment.