Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public static function fromMethodIdReference(string $method_id): self |
||
36 | { |
||
37 | if (!static::isValidMethodIdReference($method_id)) { |
||
38 | throw new \InvalidArgumentException('Invalid method id reference provided: ' . $method_id); |
||
39 | } |
||
40 | // remove trailing backslash if it exists |
||
41 | $method_id = \preg_replace('/^\\\\/', '', $method_id); |
||
42 | $method_id_parts = \explode('::', $method_id); |
||
43 | return new static($method_id_parts[0], \strtolower($method_id_parts[1])); |
||
44 | } |
||
45 | |||
52 |
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.