Completed
Push — master ( f8086b...73ecc4 )
by Sebastian
14s
created

NewRelicMonitoring::nameTransaction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
namespace Kartenmacherei\RestFramework\Monitoring;
5
6
use Kartenmacherei\NewRelic\NewRelic;
7
8
class NewRelicMonitoring implements TransactionMonitoring
9
{
10
    /**
11
     * @var NewRelic
12
     */
13
    private $newRelic;
14
15
    /**
16
     * @param NewRelic $newRelic
17
     */
18
    public function __construct(NewRelic $newRelic)
19
    {
20
        $this->newRelic = $newRelic;
21
    }
22
23
    public function nameTransaction(string $transactionName)
24
    {
25
        $this->newRelic->nameTransaction($transactionName);
26
    }
27
}
28