Kik   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 40
c 0
b 0
f 0
wmc 3
lcom 1
cbo 0
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A toString() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
namespace Fhp\DataTypes;
4
5
/**
6
 * Class Kik
7
 * @package Fhp\DataTypes
8
 */
9
class Kik
10
{
11
    /**
12
     * @var string
13
     */
14
    protected $countryCode;
15
16
    /**
17
     * @var string
18
     */
19
    protected $bankCode;
20
21
    /**
22
     * Kik constructor.
23
     *
24
     * @param string $countryCode
25
     * @param string $bankCode
26
     */
27 8
    public function __construct($countryCode, $bankCode)
28
    {
29 8
        $this->countryCode = (string) $countryCode;
30 8
        $this->bankCode = (string) $bankCode;
31 8
    }
32
33
    /**
34
     * @return string
35
     */
36 8
    public function toString()
37
    {
38 8
        return $this->countryCode . ':' . $this->bankCode;
39
    }
40
41
    /**
42
     * @return string
43
     */
44 4
    public function __toString()
45
    {
46 4
        return $this->toString();
47
    }
48
}
49