MethodChoice::getMethodName()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
nc 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\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