CountableStub   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A count() 0 3 1
1
<?php
2
3
namespace andmemasin\myabstract\stubs;
4
5
class CountableStub implements \Countable
6
{
7
    private $count;
8
9
    public function __construct($count)
10
    {
11
        $this->count = $count;
12
    }
13
14
    public function count()
15
    {
16
        return $this->count;
17
    }
18
19
}