NewsletterList::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Spatie\Newsletter;
4
5
class NewsletterList
6
{
7
    /** @var string */
8
    public $name;
9
10
    /** @var array */
11
    public $properties = [];
12
13
    public function __construct(string $name, array $properties)
14
    {
15
        $this->name = $name;
16
        $this->properties = $properties;
17
    }
18
19
    public function getId(): string
20
    {
21
        return $this->properties['id'];
22
    }
23
24
    public function getName(): string
25
    {
26
        return $this->name;
27
    }
28
}
29