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

ClassChoice   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 28
ccs 0
cts 13
cp 0
rs 10
c 1
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getFile() 0 4 1
A getClass() 0 4 1
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