Test Failed
Push — master ( 16c39a...9c7d46 )
by Kirill
07:07
created

Store   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A add() 0 4 1
1
<?php
2
/**
3
 * This file is part of Railt package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
declare(strict_types=1);
9
10
namespace Railt\SDL\Frontend\Record;
11
12
/**
13
 * Class Store
14
 */
15
class Store
16
{
17
    /**
18
     * @var array|RecordInterface[]
19
     */
20
    private $records = [];
21
22
    /**
23
     * @param RecordInterface $record
24
     */
25
    public function add(RecordInterface $record): void
26
    {
27
        $this->records[] = $record;
28
    }
29
}
30