NewsletterList   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 0
dl 0
loc 24
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getId() 0 4 1
A getName() 0 4 1
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