CollectionDataTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A items() 0 4 1
1
<?php
2
3
namespace Nayjest\Collection;
4
5
trait CollectionDataTrait
6
{
7
    /** @var array  */
8
    private $data = [];
9
10
    /**
11
     * Returns reference to array storing collection items.
12
     *
13
     * @return array
14
     */
15 40
    protected function &items()
16
    {
17 40
        return $this->data;
18
    }
19
}
20