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

CanFulfillResponseBody   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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