NewsletterList   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 22
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A __construct() 0 4 1
A getName() 0 3 1
1
<?php
2
3
namespace DansMaCulotte\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