CanFulfillResponseBody   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 7 1
1
<?php
2
3
namespace MaxBeckers\AmazonAlexa\Response\CanFulfill;
4
5
use MaxBeckers\AmazonAlexa\Response\ResponseBodyInterface;
6
7
/**
8
 * @author Maximilian Beckers <[email protected]>
9
 */
10
class CanFulfillResponseBody implements ResponseBodyInterface
11
{
12
    /**
13
     * @var CanFulfillIntentResponse|null
14
     */
15
    public $canFulfillIntent;
16
17
    /**
18
     * @param CanFulfillIntentResponse $canFulfillIntent
19
     *
20
     * @return CanFulfillResponseBody
21
     */
22 1
    public static function create(CanFulfillIntentResponse $canFulfillIntent): self
23
    {
24 1
        $canFulfillResponseBody = new self();
25
26 1
        $canFulfillResponseBody->canFulfillIntent = $canFulfillIntent;
27
28 1
        return $canFulfillResponseBody;
29
    }
30
}
31