Passed
Push — main ( 6bf038...578b82 )
by Aleksandr
03:45 queued 32s
created

Auth   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getToken() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DalliSDK\Models;
6
7
use JMS\Serializer\Annotation as JMS;
8
9
/** @JMS\XmlRoot("auth") */
10
class Auth
11
{
12
    /** @JMS\XmlAttribute */
13
    private string $token;
14
15 4
    public function __construct(string $token)
16
    {
17 4
        $this->token = $token;
18
    }
19
20
    /**
21
     * @return string
22
     */
23 2
    public function getToken(): string
24
    {
25 2
        return $this->token;
26
    }
27
}
28