Completed
Push — master ( ed5962...9634df )
by Nikola
03:22
created

MethodChoice   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 18
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getParameter() 0 4 1
getMethodName() 0 1 ?
__toString() 0 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\ParameterMetadata;
13
14
/**
15
 * Class MethodChoice
16
 *
17
 * @package RunOpenCode\AbstractBuilder\Command\Question
18
 */
19
abstract class MethodChoice
20
{
21
    protected $parameter;
22
23
    public function __construct(ParameterMetadata $parameter)
24
    {
25
        $this->parameter = $parameter;
26
    }
27
    
28
    public function getParameter()
29
    {
30
        return $this->parameter;
31
    }
32
33
    abstract public function getMethodName();
34
35
    abstract public function __toString();
36
}
37