| @@ 10-37 (lines=28) @@ | ||
| 7 | * |
|
| 8 | * @author Sławomir Kania <[email protected]> |
|
| 9 | */ |
|
| 10 | class MethodGetterBooleanManager 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("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 | ||
| @@ 10-37 (lines=28) @@ | ||
| 7 | * |
|
| 8 | * @author Sławomir Kania <[email protected]> |
|
| 9 | */ |
|
| 10 | class MethodGetterManager 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 | self::TAG_PROPERTY_NAME, |
|
| 35 | ]; |
|
| 36 | } |
|
| 37 | } |
|
| 38 | ||