| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | abstract class DefinitionLocator implements TypeLocatorInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var DefinitionNode |
||
| 24 | */ |
||
| 25 | protected DefinitionNode $ast; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * DefinitionContext constructor. |
||
| 29 | * |
||
| 30 | * @param DefinitionNode $ast |
||
| 31 | */ |
||
| 32 | public function __construct(DefinitionNode $ast) |
||
| 33 | { |
||
| 34 | $this->ast = $ast; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param Node $node |
||
| 39 | * @return string|null |
||
| 40 | */ |
||
| 41 | protected function description(Node $node): ?string |
||
| 48 | } |
||
| 49 | } |
||
| 50 |