Metadata   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 26
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 8 1
1
<?php
2
3
namespace MaxBeckers\AmazonAlexa\Response\Directives\VideoApp;
4
5
/**
6
 * @author Maximilian Beckers <[email protected]>
7
 */
8
class Metadata
9
{
10
    /**
11
     * @var string|null
12
     */
13
    public $title;
14
15
    /**
16
     * @var string|null
17
     */
18
    public $subtitle;
19
20
    /**
21
     * @param string|null $title
22
     * @param string|null $subtitle
23
     *
24
     * @return Metadata
25
     */
26 2
    public static function create(string $title = null, string $subtitle = null): self
27
    {
28 2
        $metadata = new self();
29
30 2
        $metadata->title    = $title;
31 2
        $metadata->subtitle = $subtitle;
32
33 2
        return $metadata;
34
    }
35
}
36