NullCounter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A count() 0 4 1
A getCounts() 0 4 1
1
<?php
2
namespace MeadSteve\DiceApi\Counters;
3
4
use MeadSteve\DiceApi\Dice;
5
6
class NullCounter implements DiceCounter
7
{
8
    /**
9
     * @param Dice[] $diceCollection
10
     * @return bool
11
     */
12
    public function count(array $diceCollection)
13
    {
14
        return true;
15
    }
16
17
    /**
18
     * @return array
19
     */
20
    public function getCounts()
21
    {
22
        return [];
23
    }
24
}
25