Passed
Branch master (ee1d9b)
by Allan
03:37 queued 01:36
created

Changelog::getOwner()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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