Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getFieldNameFromGetterName ($getterName) | |
getFieldDescriptionFromGetterDescription ($shortDescription) | |
getGetterMethodName (ClassReflection $class, $camelCaseProperty) | |
getSetterMethodName (ClassReflection $class, $camelCaseProperty) | |
findAccessorMethodName (ClassReflection $class, $camelCaseProperty, $accessorName, $boolAccessorName) | |
hasMethod (ClassReflection $class, $methodName) | |
Definition at line 11 of file NameFinder.php.
findAccessorMethodName | ( | ClassReflection | $class, |
$camelCaseProperty, | |||
$accessorName, | |||
$boolAccessorName | |||
) |
Find the accessor method name for a property from the given class
ClassReflection | $class | |
string | $camelCaseProperty | |
string | $accessorName | |
bool | $boolAccessorName |
Definition at line 87 of file NameFinder.php.
getFieldDescriptionFromGetterDescription | ( | $shortDescription | ) |
Convert Data Object getter short description into field description.
string | $shortDescription |
Definition at line 42 of file NameFinder.php.
getFieldNameFromGetterName | ( | $getterName | ) |
Convert Data Object getter name into field name.
string | $getterName |
Remove 'get' prefix and make the first letter lower case
Remove 'is' prefix and make the first letter lower case
Remove 'has' prefix and make the first letter lower case
Definition at line 19 of file NameFinder.php.
getGetterMethodName | ( | ClassReflection | $class, |
$camelCaseProperty | |||
) |
Find the getter method name for a property from the given class
ClassReflection | $class | |
string | $camelCaseProperty |
Definition at line 55 of file NameFinder.php.
getSetterMethodName | ( | ClassReflection | $class, |
$camelCaseProperty | |||
) |
Find the setter method name for a property from the given class
ClassReflection | $class | |
string | $camelCaseProperty |
Definition at line 70 of file NameFinder.php.
hasMethod | ( | ClassReflection | $class, |
$methodName | |||
) |
Checks if method is defined
Case sensitivity of the method is taken into account.
ClassReflection | $class | |
string | $methodName |
Definition at line 120 of file NameFinder.php.