Passed
Push — master ( 9b3fb0...881b80 )
by Jérémy
02:18
created

TagRequest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A name() 0 3 1
A toArray() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace JDecool\Clockify\Api\Tag;
6
7
class TagRequest
8
{
9
    private $name;
10
11
    public function __construct(string $name)
12
    {
13
        $this->name = $name;
14
    }
15
16
    public function name(): string
17
    {
18
        return $this->name;
19
    }
20
21
    public function toArray(): array
22
    {
23
        return [
24
            'name' => $this->name,
25
        ];
26
    }
27
}
28