| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 14 | trait TypeAnnotationHelpers |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Gets the binding of a property of the type term of a type annotation. |
||
| 18 | * |
||
| 19 | * @param IProperty|string $property property (Or Property Name) to search for |
||
| 20 | * @return IPropertyValueBinding|null the binding of the property in the type annotation, or null if no binding |
||
| 21 | * exists |
||
| 22 | */ |
||
| 23 | public function findPropertyBinding($property): ?IPropertyValueBinding |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return IPropertyValueBinding[] gets the value annotations for the properties of the type |
||
| 43 | */ |
||
| 44 | abstract public function getPropertyValueBindings(): array; |
||
| 45 | } |
||
| 46 |