PhpDocLocationWalkerTrait
trait PhpDocLocationWalkerTrait (View source)
Walks the PhpDoc-bearing locations of an entity — the entity itself, then each of its methods when it is class-like — and collects whatever an inspector reports at each one.
PhpDocTagsCheck, PhpDocVersionFormatCheck and PhpDocLinksCheck each carried their own copy of this traversal, identical apart from the predicate applied to the doc string and the local variable names. Only the predicate ever differed, so only the predicate is passed in.
Method-level keys are "{$entityId}::{$methodName}", matching what all three produced.