Test Setup Failed
Pull Request — master (#11)
by
unknown
32:32
created

ArvatoRssToStoreBridge   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 23
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getCurrentStore() 0 4 1
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\ArvatoRss\Dependency\Facade;
9
10
class ArvatoRssToStoreBridge implements ArvatoRssToStoreInterface
11
{
12
    /**
13
     * @var \Spryker\Zed\Store\Business\StoreFacadeInterface
14
     */
15
    protected $storeFacade;
16
17
    /**
18
     * @param \Spryker\Zed\Store\Business\StoreFacadeInterface $storeFacade
19
     */
20
    public function __construct($storeFacade)
21
    {
22
        $this->storeFacade = $storeFacade;
23
    }
24
25
    /**
26
     * @return \Generated\Shared\Transfer\StoreTransfer
27
     */
28
    public function getCurrentStore()
29
    {
30
        return $this->storeFacade->getCurrentStore();
31
    }
32
}
33