-
-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathShippingMethodsLoader.php
More file actions
27 lines (20 loc) · 784 Bytes
/
Copy pathShippingMethodsLoader.php
File metadata and controls
27 lines (20 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
declare(strict_types=1);
namespace Extcode\Cart\Configuration\Loader\SiteSets;
/*
* This file is part of the package extcode/cart.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
use Extcode\Cart\Configuration\Loader\ShippingMethodsLoaderInterface;
use Extcode\Cart\Domain\Model\Cart\Cart;
final readonly class ShippingMethodsLoader extends AbstractConfigurationLoader implements ShippingMethodsLoaderInterface
{
public function getShippingMethods(Cart $cart): array
{
$services = [];
$configurations = $this->getConfigurationsForType('cart-shippings', $cart->getBillingCountry());
return $this->getServices($configurations, $services, $cart);
}
}