1 <?php
2 /**
3 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
4 */
5 namespace Team3\PayU\Order\Model\Products;
6
7 use Team3\PayU\Order\Model\IsFilledInterface;
8
9 interface ProductCollectionInterface extends \IteratorAggregate, \Countable, IsFilledInterface
10 {
11 /**
12 * @param ProductInterface $product
13 *
14 * @return $this
15 */
16 public function addProduct(ProductInterface $product);
17
18 /**
19 * @inheritdoc
20 */
21 public function getProducts();
22
23 /**
24 * @param array $products
25 *
26 * @return ProductCollection
27 */
28 public function setProducts(array $products);
29 }
30