Passed
Push — master ( fd08ce...6743ff )
by Maximilian
01:01 queued 10s
created

Clear   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 8 1
1
<?php
2
3
namespace MaxBeckers\AmazonAlexa\Response\Directives\Dialog\UpdateDynamicEntities;
4
5
class Clear extends UpdateDynamicEntities
6
{
7
    const UPDATE_BEHAVIOR = 'CLEAR';
8
9
    /**
10
     * @return Clear
11
     */
12
    public static function create(): self
13
    {
14
        $directive = new static();
15
16
        $directive->type           = static::TYPE;
17
        $directive->updateBehavior = static::UPDATE_BEHAVIOR;
18
19
        return $directive;
20
    }
21
}
22