| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | final class NativeTypeParser implements TypeParser |
||
| 18 | { |
||
| 19 | private const ROOT_RULE = 'type'; |
||
| 20 | |||
| 21 | /** @var Parser */ |
||
| 22 | private $compiler; |
||
| 23 | |||
| 24 | /** @var TypeVisitor */ |
||
| 25 | private $visitor; |
||
| 26 | |||
| 27 | public function __construct() |
||
| 28 | { |
||
| 29 | $this->compiler = Llk::load(new Read(__DIR__ . '/type.pp')); |
||
| 30 | $this->visitor = new TypeVisitor(); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param array<string, string> $imports |
||
| 35 | */ |
||
| 36 | public function parsePropertyType(string $docBlock, array $imports) : Type |
||
| 44 | } |
||
| 45 | } |
||
| 46 |