Completed
Push — master ( 866870...6584d5 )
by Andrii
15:02
created

Order::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 0
cts 0
cp 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 3
crap 2
1
<?php
2
3
namespace hiqdev\php\billing\order;
4
5
use hiqdev\php\billing\customer\CustomerInterface;
6
7
class Order
8
{
9
    public $id;
10
11
    public $customer;
12
13
    public $actions = [];
14
15
    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...
16
    {
17
        $this->id = $id;
18
        $this->customer = $customer;
19
        $this->actions = $actions;
20
    }
21
}
22