Wishlist
class Wishlist
Class Wishlist
Properties
| protected | $id | ||
| protected string | $name | Name of wish list | |
| protected User | $user | User who created wish list | |
| protected ArrayCollection | $products | Collection of products in wish list |
Methods
__construct()
Wishlist constructor.
int
getId()
No description
string
getName()
No description
ArrayCollection
getProducts(bool $filter = true)
Get products from wishlist, if filter param is set return only available products
setProducts(ArrayCollection $products)
No description
Details
at line 81
__construct()
Wishlist constructor.
Initialize list of products
at line 89
int
getId()
at line 99
Wishlist
setId(int $id)
at line 109
string
getName()
at line 119
Wishlist
setName(string $name)
at line 129
User
getUser()
at line 152
ArrayCollection
getProducts(bool $filter = true)
Get products from wishlist, if filter param is set return only available products
at line 166
Wishlist
setProducts(ArrayCollection $products)
at line 190
removeProduct(Product $product)
Remove Products from collection