CreditCardDetails   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 32
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getNumber() 0 4 1
A getExpiry() 0 4 1
1
<?php
2
3
namespace Carnage\DceTest;
4
5
class CreditCardDetails
6
{
7
    private $number;
8
    private $expiry;
9
10
    /**
11
     * CreditCardDetails constructor.
12
     * @param $number
13
     * @param $expiry
14
     */
15
    public function __construct($number, $expiry)
16
    {
17
        $this->number = $number;
18
        $this->expiry = $expiry;
19
    }
20
21
    /**
22
     * @return mixed
23
     */
24
    public function getNumber()
25
    {
26
        return $this->number;
27
    }
28
29
    /**
30
     * @return mixed
31
     */
32
    public function getExpiry()
33
    {
34
        return $this->expiry;
35
    }
36
}