Countable::count()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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