Copied!

Extract a property's doc block.

A property's doc block may be located on a constructor promoted argument, on the property or on a mutator for that property.

AbstractInterface
Methods
public abstract getDocBlock(string $class, string $property) : ?phpDocumentor\Reflection\DocBlock
 

Gets the first available doc block for a property. It finds the doc block by the following priority:

  • constructor promoted argument
  • the class property
  • a mutator method for that property

If no doc block is found, it will return null.

© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration