Passed
Pull Request — master (#35)
by Maximilian
03:29
created

CanFulfillResponseBody::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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
    public static function create(CanFulfillIntentResponse $canFulfillIntent): self
23
    {
24
        $canFulfillResponseBody = new self();
25
26
        $canFulfillResponseBody->canFulfillIntent = $canFulfillIntent;
27
28
        return $canFulfillResponseBody;
29
    }
30
}
31