Title   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTitle() 0 3 1
A create() 0 6 1
1
<?php declare(strict_types=1);
2
3
namespace Sprain\SwissQrBill\PaymentPart\Output\Element;
4
5
/**
6
 * @internal
7
 */
8
final class Title implements OutputElementInterface
9
{
10
    private string $title;
11
12
    public static function create(string $title): self
13
    {
14
        $element = new self();
15
        $element->title = $title;
16
17
        return $element;
18
    }
19
20
    public function getTitle(): string
21
    {
22
        return $this->title;
23
    }
24
}
25