AbstractInteractor::all()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace CCT\Component\Collections\Interactors;
6
7
abstract class AbstractInteractor implements InteractorInterface
8
{
9
    /**
10
     * @var array
11
     */
12
    protected $elements;
13
14
    /**
15
     * AbstractInteractor constructor.
16
     *
17
     * @param array $elements
18
     */
19 29
    public function __construct(array $elements)
20
    {
21 29
        $this->elements = $elements;
22 29
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27 9
    public function all(): array
28
    {
29 9
        return $this->elements;
30
    }
31
}
32