Title::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 6
rs 10
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