Code Duplication    Length = 12-12 lines in 2 locations

src/RunOpenCode/AbstractBuilder/Command/Question/GetterMethodChoice.php 1 location

@@ 17-28 (lines=12) @@
14
 *
15
 * @package RunOpenCode\AbstractBuilder\Command\Question
16
 */
17
class GetterMethodChoice extends MethodChoice
18
{
19
    public function getMethodName()
20
    {
21
        return sprintf('get%s', ucfirst($this->parameter->getName()));
22
    }
23
24
    public function __toString()
25
    {
26
        return sprintf('get%s()', ucfirst($this->parameter->getName()));
27
    }
28
}
29

src/RunOpenCode/AbstractBuilder/Command/Question/SetterMethodChoice.php 1 location

@@ 17-28 (lines=12) @@
14
 *
15
 * @package RunOpenCode\AbstractBuilder\Command\Question
16
 */
17
class SetterMethodChoice extends MethodChoice
18
{
19
    public function getMethodName()
20
    {
21
        return sprintf('set%s', ucfirst($this->parameter->getName()));
22
    }
23
24
    public function __toString()
25
    {
26
        return sprintf('set%s($%s)', ucfirst($this->parameter->getName()), $this->parameter->getName());
27
    }
28
}
29