{"action":"closed","issue":{"url":"https://api.github.com/repos/philipbrown/basket/issues/10","labels_url":"https://api.github.com/repos/philipbrown/basket/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/philipbrown/basket/issues/10/comments","events_url":"https://api.github.com/repos/philipbrown/basket/issues/10/events","html_url":"https://github.com/philipbrown/basket/issues/10","id":59781223,"number":10,"title":"Idea: Adding a basket->itemCount property","user":{"login":"nWidart","id":882397,"avatar_url":"https://avatars.githubusercontent.com/u/882397?v=3","gravatar_id":"","url":"https://api.github.com/users/nWidart","html_url":"https://github.com/nWidart","followers_url":"https://api.github.com/users/nWidart/followers","following_url":"https://api.github.com/users/nWidart/following{/other_user}","gists_url":"https://api.github.com/users/nWidart/gists{/gist_id}","starred_url":"https://api.github.com/users/nWidart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nWidart/subscriptions","organizations_url":"https://api.github.com/users/nWidart/orgs","repos_url":"https://api.github.com/users/nWidart/repos","events_url":"https://api.github.com/users/nWidart/events{/privacy}","received_events_url":"https://api.github.com/users/nWidart/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-04T10:51:08Z","updated_at":"2015-03-09T13:12:33Z","closed_at":"2015-03-09T13:12:33Z","body":"It might be nice to have a `$basket->itemCount` property on the basket class which would just contain the amount of products * their quantity.\r\n\r\nAt the moment we can only get `$basket->products()->count()`. But if a product is multiple times in the basket that wouldn't reflect the item count on the global basket.\r\n\r\nObviously both counts are useful.\r\n\r\nEdit: I just found the `$basket->count()` method but which basically is a product count, not an item count.\r\n\r\n"}}