class StaticReflectionParser extends StaticReflectionParser (View source)

internal  This is a temporary solution to the fact that migration source plugins have more than one provider. This functionality will be moved to core in https://www.drupal.org/node/2786355.
 

Allows getting the reflection parser for the parent class.

Methods

static StaticReflectionParser|null
getParentParser(StaticReflectionParser $parser, $finder)

If the current class extends another, get the parser for the latter.

Details

static StaticReflectionParser|null getParentParser(StaticReflectionParser $parser, $finder)

If the current class extends another, get the parser for the latter.

Parameters

StaticReflectionParser $parser

The current static parser.

$finder

The class finder. Must implement \Doctrine\Common\Reflection\ClassFinderInterface, but can do so implicitly (i.e., implements the interface's methods but not the actual interface).

Return Value

StaticReflectionParser|null

The static parser for the parent if there's a parent class or NULL.