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

ArrayLoader::getLoadedData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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