Countable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A count() 0 4 1
1
<?php
2
3
4
namespace SmartWeb\ModuleTesting\Support;
5
6
use SmartWeb\ModuleTesting\Support\Concerns;
7
8
9
/**
10
 * Trait Countable
11
 *
12
 * @package SmartWeb\ModuleTesting\Support
13
 */
14
trait Countable
15
{
16
    
17
    use Concerns\HasAttributes;
18
    
19
    /**
20
     * @return int
21
     */
22
    public function count() : int
23
    {
24
        return count($this->attributes);
25
    }
26
    
27
}
28