1 <?php
2 /**
3 * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl>
4 */
5 namespace Team3\PayU\Order\Model\ShippingMethods;
6
7 use Team3\PayU\Order\Model\IsFilledInterface;
8
9 interface ShippingMethodCollectionInterface extends \IteratorAggregate, \Countable, IsFilledInterface
10 {
11 /**
12 * @return ShippingMethodInterface[]
13 */
14 public function getShippingMethods();
15
16 /**
17 * @inheritdoc
18 */
19 public function addShippingMethod(ShippingMethodInterface $shippingMethod);
20
21 /**
22 * @param ShippingMethodInterface[] $shippingMethods
23 *
24 * @return ShippingMethodCollection
25 */
26 public function setShippingMethods(array $shippingMethods);
27 }
28