Passed
Pull Request — master (#22)
by Manuel
01:50
created

Title::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Sprain\SwissQrBill\PaymentPart\Output\Element;
4
5
class Title implements OutputElementInterface
6
{
7
    private $title;
8
9
    public static function create(string $title)
10
    {
11
        $element = new self();
12
        $element->title = $title;
13
14
        return $element;
15
    }
16
17
    public function getTitle(): ?string
18
    {
19
        return $this->title;
20
    }
21
}