Completed
Pull Request — master (#41)
by Níckolas Daniel
05:03
created

Participant   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 10
dl 0
loc 28
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A name() 0 3 1
A description() 0 3 1
A picture() 0 3 1
1
<?php
2
3
namespace PODEntender\Domain\Model\Participant;
4
5
class Participant
6
{
7
    private $name;
8
9
    private $picture;
10
11
    private $description;
12
13
    public function __construct(string $name, string $picture, string $description)
14
    {
15
        $this->name = $name;
16
        $this->picture = $picture;
17
        $this->description = $description;
18
    }
19
20
    public function name(): string
21
    {
22
        return $this->name;
23
    }
24
25
    public function picture(): string
26
    {
27
        return $this->picture;
28
    }
29
30
    public function description(): string
31
    {
32
        return $this->description;
33
    }
34
}
35