Completed
Pull Request — development (#2)
by Oleksandr
07:00
created

EcondaToPriceProductFacadeBridge::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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\Econda\Dependency\Facade;
9
10
class EcondaToPriceProductFacadeBridge implements EcondaToPriceProductFacadeInterface
11
{
12
    /**
13
     * @var \Spryker\Zed\PriceProduct\Business\PriceProductFacadeInterface
14
     */
15
    protected $facade;
16
17
    /**
18
     * @param \Spryker\Zed\PriceProduct\Business\PriceProductFacadeInterface $facade
19
     */
20
    public function __construct($facade)
21
    {
22
        $this->facade = $facade;
23
    }
24
25
    /**
26
     * @param string $sku
27
     * @param string|null $priceTypeName
28
     *
29
     * @return int|null
30
     */
31
    public function findPriceBySku($sku, $priceTypeName = null)
32
    {
33
        return $this->facade->findPriceBySku($sku, $priceTypeName);
34
    }
35
}
36