ServiceAccount   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 34
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getPrivateKey() 0 4 1
A getClientEmail() 0 4 1
A getSubject() 0 4 1
1
<?php
2
3
namespace Audiens\DoubleclickClient\entity;
4
5
class ServiceAccount
6
{
7
8
    /** @var string */
9
    protected $privateKey;
10
11
    /** @var string */
12
    protected $clientEmail;
13
14
    /** @var string */
15
    protected $subject;
16
17
    public function __construct(string $privateKey, string $clientEmail, string $subject)
18
    {
19
        $this->privateKey  = $privateKey;
20
        $this->clientEmail = $clientEmail;
21
        $this->subject     = $subject;
22
    }
23
24
    public function getPrivateKey(): string
25
    {
26
        return $this->privateKey;
27
    }
28
29
    public function getClientEmail(): string
30
    {
31
        return $this->clientEmail;
32
    }
33
34
    public function getSubject(): string
35
    {
36
        return $this->subject;
37
    }
38
}
39