Passed
Pull Request — master (#20)
by Fabrice
06:08 queued 03:04
created

ArrayLoader   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLoadedData() 0 3 1
A exec() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of YaEtl
5
 *     (c) Fabrice de Stefanis / https://github.com/fab2s/YaEtl
6
 * This source file is licensed under the MIT license which you will
7
 * find in the LICENSE file or at https://opensource.org/licenses/MIT
8
 */
9
10
namespace fab2s\YaEtl\Loaders;
11
12
class ArrayLoader extends LoaderAbstract
13
{
14
    protected $loadedData = [];
15
16
    public function exec($param = null)
17
    {
18
        $this->loadedData[] = $param;
19
    }
20
21
    /**
22
     * @return array
23
     */
24
    public function getLoadedData(): array
25
    {
26
        return $this->loadedData;
27
    }
28
}
29