Total Complexity | 3 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
18 | { |
||
19 | /** |
||
20 | * Parses the tokens contained in the given list in the context of the given parser. |
||
21 | * |
||
22 | * @param Parser $parser the parser that serves as context |
||
23 | * @param TokensList $list the list of tokens that are being parsed |
||
24 | * @param array<string, mixed> $options parameters for parsing |
||
25 | * |
||
26 | * @return mixed |
||
27 | */ |
||
28 | public static function parse(Parser $parser, TokensList $list, array $options = []); |
||
29 | |||
30 | /** |
||
31 | * Builds the string representation of a component of this type. |
||
32 | * |
||
33 | * In other words, this function represents the inverse function of {@see Component::parse()}. |
||
34 | * |
||
35 | * @param mixed $component the component to be built |
||
36 | * @param array<string, mixed> $options parameters for building |
||
37 | */ |
||
38 | public static function build($component, array $options = []): string; |
||
39 | } |
||
40 |