Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class Candidate implements CandidateInterface |
||
13 | { |
||
14 | /** @var PackageInterface */ |
||
15 | private $package; |
||
16 | |||
17 | /** @var SymbolIteratorInterface */ |
||
18 | private $symbols; |
||
19 | |||
20 | /** |
||
21 | * Constructor. |
||
22 | * |
||
23 | * @param PackageInterface $package |
||
24 | * @param SymbolIteratorInterface $symbols |
||
25 | */ |
||
26 | 1 | public function __construct( |
|
27 | PackageInterface $package, |
||
28 | SymbolIteratorInterface $symbols |
||
29 | ) { |
||
30 | 1 | $this->package = $package; |
|
31 | 1 | $this->symbols = $symbols; |
|
32 | 1 | } |
|
33 | |||
34 | /** |
||
35 | * Get the composer package. |
||
36 | * |
||
37 | * @return PackageInterface |
||
38 | */ |
||
39 | 1 | public function getPackage(): PackageInterface |
|
40 | { |
||
41 | 1 | return $this->package; |
|
42 | } |
||
43 | |||
44 | /** |
||
45 | * Get the symbols. |
||
46 | * |
||
47 | * @return SymbolIteratorInterface |
||
48 | */ |
||
49 | 1 | public function getSymbols(): SymbolIteratorInterface |
|
52 | } |
||
53 | } |
||
54 |