Passed
Pull Request — master (#1)
by Jérémy
02:11
created

TimeEntriesDurationRequest::start()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace JDecool\Clockify\Api\TimeEntry;
6
7
class TimeEntriesDurationRequest
8
{
9
    private $start;
10
    private $end;
11
12
    public function __construct(string $start, string $end)
13
    {
14
        $this->start = $start;
15
        $this->end = $end;
16
    }
17
18
    public function start(): string
19
    {
20
        return $this->start;
21
    }
22
23
    public function end(): string
24
    {
25
        return $this->end;
26
    }
27
28
    public function toArray(): array
29
    {
30
        return [
31
            'start' => $this->start,
32
            'end' => $this->end,
33
        ];
34
    }
35
}
36