RegionBranch::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 5
rs 10
1
<?php
2
3
4
namespace talismanfr\rosselhozbank\dto;
5
6
7
class RegionBranch
8
{
9
    /** @var int */
10
    private $id;
11
12
    /** @var string */
13
    private $branchName;
14
    /** @var string */
15
    private $regionName;
16
17
    /**
18
     * RegionBranch constructor.
19
     * @param int $id
20
     * @param string $branchName
21
     * @param string $regionName
22
     */
23
    public function __construct(int $id, string $branchName, string $regionName)
24
    {
25
        $this->id = $id;
26
        $this->branchName = $branchName;
27
        $this->regionName = $regionName;
28
    }
29
30
    /**
31
     * @return int
32
     */
33
    public function getId(): int
34
    {
35
        return $this->id;
36
    }
37
38
    /**
39
     * @return string
40
     */
41
    public function getBranchName(): string
42
    {
43
        return $this->branchName;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getRegionName(): string
50
    {
51
        return $this->regionName;
52
    }
53
54
55
56
}