Completed
Push — master ( 9715fb...41f74f )
by Dmitry
01:57
created

Order   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace hiqdev\php\billing;
4
5
class Order
6
{
7
    public $id;
8
9
    public $customer;
10
11
    public $actions = [];
12
13
    function __construct($id, CustomerInterface $customer, $actions)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
14
    {
15
        $this->id = $id;
16
        $this->customer = $customer;
17
        $this->actions = $actions;
18
    }
19
}
20