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

MethodGetterInterfaceManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPreparedName() 0 4 1
A getTemplateTags() 0 8 1
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