|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Framework\Cache\FrontendInterface $cache, TypeProcessor $typeProcessor, \Magento\Framework\Api\AttributeTypeResolverInterface $typeResolver, FieldNamer $fieldNamer) | |
| getMethodReturnType ($typeName, $methodName) | |
| getMethodsMap ($interfaceName) | |
| isMethodValidForDataField ($type, $methodName) | |
| isMethodReturnValueRequired ($type, $methodName) | |
Data Fields | |
| const | SERVICE_METHOD_PARAMS_CACHE_PREFIX = 'service_method_params_' |
| const | SERVICE_INTERFACE_METHODS_CACHE_PREFIX = 'serviceInterfaceMethodsMap' |
| const | BASE_MODEL_CLASS = \Magento\Framework\Model\AbstractExtensibleModel::class |
| const | METHOD_META_NAME = 'name' |
| const | METHOD_META_TYPE = 'type' |
| const | METHOD_META_HAS_DEFAULT_VALUE = 'isDefaultValueAvailable' |
| const | METHOD_META_DEFAULT_VALUE = 'defaultValue' |
Gathers method metadata information.
Definition at line 18 of file MethodsMap.php.
| __construct | ( | \Magento\Framework\Cache\FrontendInterface | $cache, |
| TypeProcessor | $typeProcessor, | ||
| \Magento\Framework\Api\AttributeTypeResolverInterface | $typeResolver, | ||
| FieldNamer | $fieldNamer | ||
| ) |
| \Magento\Framework\Cache\FrontendInterface | $cache | |
| TypeProcessor | $typeProcessor | |
| \Magento\Framework\Api\AttributeTypeResolverInterface | $typeResolver | |
| FieldNamer | $fieldNamer |
Definition at line 60 of file MethodsMap.php.
| getMethodReturnType | ( | $typeName, | |
| $methodName | |||
| ) |
Get return type by type name and method name.
| string | $typeName | |
| string | $methodName |
Definition at line 79 of file MethodsMap.php.
| getMethodsMap | ( | $interfaceName | ) |
Return service interface or Data interface methods loaded from cache
| string | $interfaceName |
Service methods' reflection data stored in cache as 'methodName' => 'returnType' ex. [ 'create' => '\Magento\Customer\Api\Data\Customer', 'validatePassword' => 'boolean' ]
Definition at line 98 of file MethodsMap.php.
| isMethodReturnValueRequired | ( | $type, | |
| $methodName | |||
| ) |
If the method has only non-null return types
| string | $type | |
| string | $methodName |
Definition at line 221 of file MethodsMap.php.
| isMethodValidForDataField | ( | $type, | |
| $methodName | |||
| ) |
Determines if the given method's on the given type is suitable for an output data array.
| string | $type | |
| string | $methodName |
Definition at line 197 of file MethodsMap.php.
| const BASE_MODEL_CLASS = \Magento\Framework\Model\AbstractExtensibleModel::class |
Definition at line 22 of file MethodsMap.php.
| const METHOD_META_DEFAULT_VALUE = 'defaultValue' |
Definition at line 27 of file MethodsMap.php.
| const METHOD_META_HAS_DEFAULT_VALUE = 'isDefaultValueAvailable' |
Definition at line 26 of file MethodsMap.php.
| const METHOD_META_NAME = 'name' |
Definition at line 24 of file MethodsMap.php.
| const METHOD_META_TYPE = 'type' |
Definition at line 25 of file MethodsMap.php.
| const SERVICE_INTERFACE_METHODS_CACHE_PREFIX = 'serviceInterfaceMethodsMap' |
Definition at line 21 of file MethodsMap.php.
| const SERVICE_METHOD_PARAMS_CACHE_PREFIX = 'service_method_params_' |
Definition at line 20 of file MethodsMap.php.