FactFinderBusinessFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 16
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFactFinderSdkClient() 0 3 1
A createTracker() 0 3 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
namespace SprykerEco\Zed\FactFinder\Business;
8
9
use Spryker\Zed\Kernel\Business\AbstractBusinessFactory;
10
use SprykerEco\Zed\FactFinder\Business\Tracker\Tracker;
11
use SprykerEco\Zed\FactFinder\FactFinderDependencyProvider;
12
13
class FactFinderBusinessFactory extends AbstractBusinessFactory
14
{
15
    /**
16
     * @return \SprykerEco\Zed\FactFinder\Business\Tracker\TrackerInterface
17
     */
18
    public function createTracker()
19
    {
20
        return new Tracker($this->getFactFinderSdkClient());
21
    }
22
23
    /**
24
     * @return \SprykerEco\Client\FactFinderSdk\FactFinderSdkClientInterface
25
     */
26
    protected function getFactFinderSdkClient()
27
    {
28
        return $this->getProvidedDependency(FactFinderDependencyProvider::FACT_FINDER_SDK_CLIENT);
29
    }
30
}
31