PlaybackStopped   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
A create() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MaxBeckers\AmazonAlexa\Response\Directives\AudioPlayer;
6
7
class PlaybackStopped extends AbstractPlaybackDirective
8
{
9
    public const TYPE = 'AudioPlayer.PlaybackStopped';
10
11 1
    public function __construct(
12
        string $requestId = '',
13
        string $timestamp = '',
14
        string $token = '',
15
        int $offsetInMilliseconds = 0,
16
        string $locale = ''
17
    ) {
18 1
        parent::__construct($requestId, $timestamp, $token, $offsetInMilliseconds, $locale);
19 1
        $this->type = self::TYPE;
20
    }
21
22
    /**
23
     * @param string $requestId
24
     * @param string $timestamp
25
     * @param string $token
26
     * @param int $offsetInMilliseconds
27
     * @param string $locale
28
     *
29
     * @return PlaybackStopped
30
     */
31 1
    public static function create(string $requestId, string $timestamp, string $token, int $offsetInMilliseconds, string $locale): self
32
    {
33 1
        return new self($requestId, $timestamp, $token, $offsetInMilliseconds, $locale);
34
    }
35
}
36