StopInputHandlerDirective   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 8 1
1
<?php
2
3
namespace MaxBeckers\AmazonAlexa\Response\Directives\GameEngine;
4
5
use MaxBeckers\AmazonAlexa\Response\Directives\Directive;
6
7
/**
8
 * @author Maximilian Beckers <[email protected]>
9
 */
10
class StopInputHandlerDirective extends Directive
11
{
12
    const TYPE = 'GameEngine.StopInputHandler';
13
14
    /**
15
     * @var string|null
16
     */
17
    public $originatingRequestId;
18
19
    /**
20
     * @param string $originatingRequestId
21
     *
22
     * @return StopInputHandlerDirective
23
     */
24 1
    public static function create(string $originatingRequestId): self
25
    {
26 1
        $setLight = new self();
27
28 1
        $setLight->type                 = self::TYPE;
29 1
        $setLight->originatingRequestId = $originatingRequestId;
30
31 1
        return $setLight;
32
    }
33
}
34