CanFulfillResponseBody::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 1
crap 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