Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions
Interceptor Class Reference
Inheritance diagram for Interceptor:
Interceptor EntityAbstract

Public Member Functions

 setInterceptedMethods ($interceptedMethods)
 
- Public Member Functions inherited from EntityAbstract
 __construct ( $sourceClassName=null, $resultClassName=null, Io $ioObject=null, \Magento\Framework\Code\Generator\CodeGeneratorInterface $classGenerator=null, DefinedClasses $definedClasses=null)
 
 generate ()
 
 getErrors ()
 
 getSourceClassName ()
 
 getSourceClassNameWithoutNamespace ()
 
 init ($sourceClassName, $resultClassName)
 

Protected Member Functions

 isInterceptedMethod (\ReflectionMethod $method)
 
- Protected Member Functions inherited from Interceptor
 _getDefaultResultClassName ($modelClassName)
 
 _getClassProperties ()
 
 _getDefaultConstructorDefinition ()
 
 _getClassMethods ()
 
 isInterceptedMethod (\ReflectionMethod $method)
 
 _getMethodInfo (\ReflectionMethod $method)
 
 _getParameterList (array $parameters)
 
 _generateCode ()
 
 _validateData ()
 
- Protected Member Functions inherited from EntityAbstract
 _getFullyQualifiedClassName ($className)
 
 _getResultClassName ()
 
 _getDefaultResultClassName ($modelClassName)
 
 _getClassProperties ()
 
 _getDefaultConstructorDefinition ()
 
 _getClassMethods ()
 
 _generateCode ()
 
 _addError ($message)
 
 _validateData ()
 
 _getClassDocBlock ()
 
 _getGeneratedCode ()
 
 _fixCodeStyle ($sourceCode)
 
 _getNullDefaultValue ()
 
 _getMethodParameterInfo (\ReflectionParameter $parameter)
 

Additional Inherited Members

- Data Fields inherited from Interceptor
const ENTITY_TYPE = 'interceptor'
 
- Data Fields inherited from EntityAbstract
const ENTITY_TYPE = 'abstract'
 
- Protected Attributes inherited from EntityAbstract
 $_classGenerator
 

Detailed Description

Definition at line 12 of file Interceptor.php.

Member Function Documentation

◆ isInterceptedMethod()

isInterceptedMethod ( \ReflectionMethod  $method)
protected

Whether method is intercepted

Parameters
\ReflectionMethod$method
Returns
bool

Definition at line 28 of file Interceptor.php.

29  {
30  return parent::isInterceptedMethod($method) && in_array($method->getName(), $this->interceptedMethods);
31  }
$method
Definition: info.phtml:13

◆ setInterceptedMethods()

setInterceptedMethods (   $interceptedMethods)

Sets list of intercepted methods

Parameters
array$interceptedMethods
Returns
void

Definition at line 40 of file Interceptor.php.

41  {
42  $this->interceptedMethods = $interceptedMethods;
43  }

The documentation for this class was generated from the following file: