Passed
Push — master ( 655a42...ee1d9b )
by Allan
02:04
created

Changelog   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 7
dl 0
loc 32
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getOwner() 0 3 1
A getReleases() 0 3 1
A __construct() 0 6 1
1
<?php
2
/**
3
 * Copyright © Vaimo Group. All rights reserved.
4
 * See LICENSE_VAIMO.txt for license details.
5
 */
6
namespace Vaimo\ComposerChangelogs\Data;
7
8
class Changelog
9
{
10
    /**
11
     * @var \Composer\Package\PackageInterface
12
     */
13
    private $package;
14
15
    /**
16
     * @var array
17
     */
18
    private $changelog;
19
20
    /**
21
     * @param \Composer\Package\PackageInterface $package
22
     * @param array $changelog
23
     */
24
    public function __construct(
25
        \Composer\Package\PackageInterface $package,
26
        array $changelog
27
    ) {
28
        $this->package = $package;
29
        $this->changelog = $changelog;
30
    }
31
    
32
    public function getOwner()
33
    {
34
        return $this->package;
35
    }
36
    
37
    public function getReleases()
38
    {
39
        return $this->changelog;
40
    }
41
}
42