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

MethodGetterInterfaceManager::getPreparedName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
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 Manager For Interface
7
 *
8
 * @author Sławomir Kania <[email protected]>
9
 */
10
class MethodGetterInterfaceManager extends MethodManager
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("get%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
        ];
35
    }
36
}
37