1 | <?php |
||
22 | class Utils |
||
23 | { |
||
24 | /** |
||
25 | * @param RuleInterface $rule |
||
26 | * @return string|null |
||
27 | */ |
||
28 | public static function findName(RuleInterface $rule): ?string |
||
38 | |||
39 | /** |
||
40 | * @param Readable $file |
||
41 | * @param RuleInterface $rule |
||
42 | * @return string |
||
43 | * @throws SyntaxException |
||
44 | */ |
||
45 | public static function getName(Readable $file, RuleInterface $rule): string |
||
56 | |||
57 | /** |
||
58 | * @param RuleInterface $rule |
||
59 | * @return string|null |
||
60 | */ |
||
61 | public static function findDescription(RuleInterface $rule): ?string |
||
71 | } |
||
72 |