Completed
Push — master ( 5309e4...b64411 )
by Frederick
12s
created

Statistics::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Vanbrabantf\NpmStatFetcher\ValueObjects;
4
5
6
class Statistics
7
{
8
    /**
9
     * @var Package
10
     */
11
    private $package;
12
13
    /**
14
     * Statistics constructor.
15
     * @param Package $package
16
     */
17
    public function __construct(Package $package)
18
    {
19
        $this->package = $package;
20
    }
21
22
    /**
23
     * @return string
24
     */
25
    public function getPackageName(): string
26
    {
27
        return (string)$this->package;
28
    }
29
30
    /**
31
     * @return Package
32
     */
33
    public function getPackage(): Package
34
    {
35
        return $this->package;
36
    }
37
}