Completed
Push — master ( b846df...63f83e )
by Freek
03:08
created

NewsletterList::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
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
    /**
14
     * @param string $name
15
     * @param array  $properties
16
     */
17
    public function __construct($name, array $properties)
18
    {
19
        $this->name = $name;
20
        $this->properties = $properties;
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getId()
27
    {
28
        return $this->properties['id'];
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getName()
35
    {
36
        return $this->name;
37
    }
38
}
39