Passed
Push — master ( 792d70...44c05d )
by Maximilian
01:22 queued 16s
created

AbstractPlaybackDirective   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 11
c 1
b 0
f 0
dl 0
loc 41
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setProperties() 0 7 1
1
<?php
2
3
namespace MaxBeckers\AmazonAlexa\Response\Directives\AudioPlayer;
4
5
use MaxBeckers\AmazonAlexa\Response\Directives\Directive;
6
7
/**
8
 * @author Maximilian Beckers <[email protected]>
9
 */
10
abstract class AbstractPlaybackDirective extends Directive
11
{
12
    /**
13
     * @var string
14
     */
15
    public $requestId;
16
17
    /**
18
     * @var string
19
     */
20
    public $timestamp;
21
22
    /**
23
     * @var string
24
     */
25
    public $token;
26
27
    /**
28
     * @var int
29
     */
30
    public $offsetInMilliseconds;
31
32
    /**
33
     * @var string
34
     */
35
    public $locale;
36
37
    /**
38
     * @param string $requestId
39
     * @param string $timestamp
40
     * @param string $token
41
     * @param int    $offsetInMilliseconds
42
     * @param string $locale
43
     */
44 9
    public function setProperties(string $requestId, string $timestamp, string $token, int $offsetInMilliseconds, string $locale)
45
    {
46 9
        $this->requestId            = $requestId;
47 9
        $this->timestamp            = $timestamp;
48 9
        $this->token                = $token;
49 9
        $this->offsetInMilliseconds = $offsetInMilliseconds;
50 9
        $this->locale               = $locale;
51
    }
52
}
53