class InheritDocVersionResolver (View source)

Resolves sinceVersion for methods whose PhpDoc contains by inheriting the version from the nearest parent interface or class that defines the same method with an explicit @since tag.

Must be called AFTER ClassHierarchyResolver has wired up the object references in PHPClass::$interfaces, PHPClass::$parentClass, and PHPInterface::$parentInterfaces.

Methods

void
resolve(iterable $classes, iterable $interfaces = [], iterable $enums = [])

No description

Details

void resolve(iterable $classes, iterable $interfaces = [], iterable $enums = [])

No description

Parameters

iterable $classes

All PHPClass instances from storage

iterable $interfaces

All PHPInterface instances from storage

iterable $enums

All PHPEnum instances from storage

Return Value

void