Completed
Branch master (3b8125)
by
unknown
01:25
created

MethodGetterBooleanManager::getPreparedName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace HelloWordPl\SimpleEntityGeneratorBundle\Lib\Items;
4
5
/**
6
 * Getter Method Boolean Manager
7
 *
8
 * @author Sławomir Kania <[email protected]>
9
 */
10 View Code Duplication
class MethodGetterBooleanManager extends MethodManager
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
11
{
12
13
    /**
14
     * Return prepared method name from property eg. getNameOrSurname
15
     *
16
     * @return string
17
     */
18
    public function getPreparedName()
19
    {
20
        return sprintf("is%s", parent::getPreparedName());
21
    }
22
23
    /**
24
     * Return set of tags used in template
25
     *
26
     * @return array
27
     */
28
    public function getTemplateTags()
29
    {
30
        return [
31
            self::TAG_COMMENT,
32
            self::TAG_PROPERTY_TYPE,
33
            self::TAG_METHOD_NAME,
34
            self::TAG_PROPERTY_NAME,
35
        ];
36
    }
37
}
38