We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To make the API easier, we should be able to pass the value directly instead of saving an instance of the item.
This
use Khalyomede\ReorderBeforeAfter\Listing; use Khalyomede\ReorderBeforeAfter\Placement; $bag = new Item("bag", 1); $book = new Item("book, 2); $listing = new Listing([$bag, $book]); $listing->reorder($bag, Placement::After, $book);
Would become this
use Khalyomede\ReorderBeforeAfter\Listing; use Khalyomede\ReorderBeforeAfter\Placement; $listing = new Listing([new Item("bag", 1), new Item("book", 2)]); $listing->reorder("bag", Placement::After, "book");
The text was updated successfully, but these errors were encountered:
#8 add reordering using the raw value instead of passing an Item
365d1cb
#8 add reordering using the raw value instead of passing an Item (#13)
96e67a9
khalyomede
Successfully merging a pull request may close this issue.
To make the API easier, we should be able to pass the value directly instead of saving an instance of the item.
This
Would become this
The text was updated successfully, but these errors were encountered: