Passed
Push — master ( c3bafb...29fa5f )
by Xavier
02:01
created

Updates::add()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace PubPeerFoundation\PublicationDataExtractor\Models;
4
5
class Updates extends Model
6
{
7
    /**
8
     * Hold cherry picked list of types.
9
     *
10
     * @var array
11
     */
12
    protected $list = [];
13
14
    /**
15
     * Add unknown updates to the current list.
16
     *
17
     * @param $updates
18
     * @return array
19
     */
20
    public function add(array $updates): array
21
    {
22
        $this->list = $updates;
23
24
        return $this->list;
25
    }
26
}
27