Passport   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 2
cbo 1
dl 0
loc 29
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A number() 0 6 1
A issue_date() 0 6 1
1
<?php
2
3
namespace OceanApplications\Postmen\Models;
4
5
class Passport extends Model
6
{
7
    public $number;
8
    public $issue_date;
9
10
    /**
11
     * @param string $value
12
     *
13
     * @return $this
14
     */
15
    public function number($value)
16
    {
17
        $this->number = strval($value);
18
19
        return $this;
20
    }
21
22
    /**
23
     * @param string $value
24
     *
25
     * @return $this
26
     */
27
    public function issue_date($value)
28
    {
29
        $this->issue_date = strval($value);
30
31
        return $this;
32
    }
33
}
34