Completed
Push — master ( 4db4ad...088dbe )
by Oleksandr
13s
created

NewRelicBusinessFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 10
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createRecordDeployment() 0 5 1
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Zed\NewRelic\Business;
9
10
use Spryker\Zed\Kernel\Business\AbstractBusinessFactory;
11
use SprykerEco\Zed\NewRelic\Business\Model\RecordDeployment;
12
use SprykerEco\Zed\NewRelic\Business\Model\RecordDeploymentInterface;
13
14
/**
15
 * @method \SprykerEco\Zed\NewRelic\NewRelicConfig getConfig()
16
 */
17
class NewRelicBusinessFactory extends AbstractBusinessFactory
18
{
19
    /**
20
     * @return \SprykerEco\Zed\NewRelic\Business\Model\RecordDeploymentInterface
21
     */
22
    public function createRecordDeployment(): RecordDeploymentInterface
23
    {
24
        return new RecordDeployment(
25
            $this->getConfig()->getNewRelicDeploymentApiUrl(),
26
            $this->getConfig()->getNewRelicApiKey()
27
        );
28
    }
29
}
30