Passed
Push — 1.x ( b30111...94f19e )
by Ulises Jeremias
02:22
created

Countable::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php namespace Mbh\Collection\Traits\Sequenceable\Arrayed;
2
3
/**
4
 * MBHFramework
5
 *
6
 * @link      https://github.com/MBHFramework/mbh-framework
7
 * @copyright Copyright (c) 2017 Ulises Jeremias Cornejo Fandos
8
 * @license   https://github.com/MBHFramework/mbh-framework/blob/master/LICENSE (MIT License)
9
 */
10
11
use Traversable;
12
13
trait Countable
14
{
15
    protected $sfa = null;
16
17
    /**
18
     * Countable
19
     */
20
    public function count(): int
21
    {
22
        return count($this->sfa);
23
    }
24
25
    abstract protected function checkCapacity();
26
}
27