Returns a list of classes matching the given criteria.
| Name | Type | Description |
|---|---|---|
| matches | string|null | (Optional) Regex to match class name |
| extends | string|null | (Optional) Returns only classes extending this class |
| implements | string|string[]|null | (Optional) Returns only classes implementing these interfaces |
| taggedWith | string|string[]|null | (Optional) Returns only classes with these Tag annotations |
| notTaggedWith | string|string[]|null | (Optional) Returns only classes without these Tag annotations |
Documentation source:
{{ classes(extends:'\ParentClass') }}
{{ classes(implements:'SomeInterface', matches:'/^Class[A-Z]/') }}
{{ classes(taggedWith:'myTag') }}
Result:
ChildClass
ClassA
ClassB
ChildClass
ParentClass