Issues (3641)

Dependency/Facade/AssetToStoreFacadeBridge.php (1 issue)

1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace Spryker\Zed\Asset\Dependency\Facade;
9
10
use Generated\Shared\Transfer\StoreTransfer;
11
12
class AssetToStoreFacadeBridge implements AssetToStoreInterface
13
{
14
    /**
15
     * @var \Spryker\Zed\Store\Business\StoreFacadeInterface
16
     */
17
    protected $storeFacade;
18
19
    /**
20
     * @param \Spryker\Zed\Store\Business\StoreFacadeInterface $storeFacade
21
     */
22
    public function __construct($storeFacade)
23
    {
24
        $this->storeFacade = $storeFacade;
25
    }
26
27
    /**
28
     * @return list<\Generated\Shared\Transfer\StoreTransfer>
29
     */
30
    public function getAllStores(): array
31
    {
32
        return $this->storeFacade->getAllStores();
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->storeFacade->getAllStores() returns the type Generated\Shared\Transfer\StoreTransfer[] which is incompatible with the documented return type Spryker\Zed\Asset\Dependency\Facade\list.
Loading history...
33
    }
34
35
    /**
36
     * @param string $storeReference
37
     *
38
     * @return \Generated\Shared\Transfer\StoreTransfer
39
     */
40
    public function getStoreByStoreReference(string $storeReference): StoreTransfer
41
    {
42
        return $this->storeFacade->getStoreByStoreReference($storeReference);
43
    }
44
}
45