NewRelicFacade   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A recordDeployment() 0 3 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\AbstractFacade;
11
use SprykerEco\Zed\NewRelic\Business\Model\RecordDeploymentInterface;
12
13
/**
14
 * @method \SprykerEco\Zed\NewRelic\Business\NewRelicBusinessFactory getFactory()
15
 */
16
class NewRelicFacade extends AbstractFacade implements NewRelicFacadeInterface
17
{
18
    /**
19
     * {@inheritDoc}
20
     *
21
     * @api
22
     *
23
     * @param array $arguments
24
     *
25
     * @throws \SprykerEco\Zed\NewRelic\Business\Exception\RecordDeploymentException
26
     *
27
     * @return \SprykerEco\Zed\NewRelic\Business\Model\RecordDeploymentInterface
28
     */
29
    public function recordDeployment(array $arguments = []): RecordDeploymentInterface
30
    {
31
        return $this->getFactory()->createRecordDeployment()->recordDeployment($arguments);
32
    }
33
}
34