Passed
Pull Request — master (#97)
by Maximilian
04:02
created

AbstractPlaybackDirective::setProperties()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
nc 1
nop 5
dl 0
loc 7
ccs 0
cts 6
cp 0
crap 2
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MaxBeckers\AmazonAlexa\Response\Directives\AudioPlayer;
6
7
use MaxBeckers\AmazonAlexa\Response\Directives\Directive;
8
9
abstract class AbstractPlaybackDirective extends Directive
10
{
11 9
    public function __construct(
12
        public string $requestId = '',
13
        public string $timestamp = '',
14
        public string $token = '',
15
        public int $offsetInMilliseconds = 0,
16
        public string $locale = ''
17
    ) {
18 9
        parent::__construct();
19
    }
20
21
    public function setProperties(string $requestId, string $timestamp, string $token, int $offsetInMilliseconds, string $locale): void
22
    {
23
        $this->requestId = $requestId;
24
        $this->timestamp = $timestamp;
25
        $this->token = $token;
26
        $this->offsetInMilliseconds = $offsetInMilliseconds;
27
        $this->locale = $locale;
28
    }
29
}
30