Completed
Push — master ( b1e8a1...edf0e8 )
by Nikola
03:49
created

ClassChoice::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 2
1
<?php
2
/*
3
 * This file is part of the Abstract builder package, an RunOpenCode project.
4
 *
5
 * (c) 2017 RunOpenCode
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace RunOpenCode\AbstractBuilder\Command\Question;
11
12
use RunOpenCode\AbstractBuilder\Ast\Metadata\ClassMetadata;
13
use RunOpenCode\AbstractBuilder\Ast\Metadata\FileMetadata;
14
15
/**
16
 * Class ClassChoice
17
 *
18
 * @package RunOpenCode\AbstractBuilder\Command\Question
19
 */
20
class ClassChoice
21
{
22
    private $file;
23
24
    private $class;
25
26
    public function __construct(FileMetadata $file, ClassMetadata $class)
27
    {
28
        $this->file = $file;
29
        $this->class = $class;
30
    }
31
32
    /**
33
     * @return FileMetadata
34
     */
35
    public function getFile()
36
    {
37
        return $this->file;
38
    }
39
40
    /**
41
     * @return ClassMetadata
42
     */
43
    public function getClass()
44
    {
45
        return $this->class;
46
    }
47
}
48