| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | interface EntityLinker |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * Whether this linker supports the provided entity. |
||
| 30 | * |
||
| 31 | * @param $entity - The entity to link |
||
| 32 | * @return - `true` if the entity is supported |
||
|
|
|||
| 33 | */ |
||
| 34 | public function supports($entity): bool; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Composes the link for a given entity. |
||
| 38 | * |
||
| 39 | * @param mixed $entity The entity to link |
||
| 40 | * @return \Minotaur\Tags\Node The node for the entity's link |
||
| 41 | * @throws \InvalidArgumentException if the entity isn't supported |
||
| 42 | */ |
||
| 43 | public function compose($entity): \Minotaur\Tags\Node; |
||
| 44 | } |
||
| 45 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.