Completed
Push — work-fleets ( 96df87...6cc592 )
by SuperNova.WS
06:02
created

V2UnitList   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 21
ccs 0
cts 2
cp 0
rs 10
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 17 1
1
<?php
2
3
namespace V2Unit;
4
5
class V2UnitList extends \SplObjectStorage {
6
7
  public function load($location) {
0 ignored issues
show
Unused Code introduced by
The parameter $location is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
8
    /**
9
     *
10
     *
11
12
13
     foreach(unitsInLocation($location) as $unit_row) {
14
       $unit_obj = new V2Unit()->load($unit_row);
15
        $this->attach($unit_obj, $unit_obj->dbId);
16
     }
17
18
19
20
21
     *
22
     */
23
  }
24
25
}
26