Bank   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 34
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
* (c) Wessel Strengholt <[email protected]>
4
*
5
* For the full copyright and license information, please view the LICENSE
6
* file that was distributed with this source code.
7
*/
8
9
namespace Usoft\IDealBundle\Model;
10
11
/**
12
 * Class Bank
13
 *
14
 * @author Wessel Strengholt <[email protected]>
15
 */
16
class Bank
17
{
18
    /** @var string */
19
    private $id;
20
21
    /** @var string */
22
    private $name;
23
24
    /**
25
     * @param string $id
26
     * @param string $name
27
     */
28
    public function __construct($id, $name)
29
    {
30
        $this->id = $id;
31
        $this->name = $name;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getId()
38
    {
39
        return $this->id;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getName()
46
    {
47
        return $this->name;
48
    }
49
}
50