| 1 | <?php |
||
| 5 | class MethodIdentifier |
||
| 6 | { |
||
| 7 | public $fq_class_name; |
||
| 8 | public $method_name; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @param string $fq_class_name |
||
| 12 | * @param lowercase-string $method_name |
||
|
|
|||
| 13 | */ |
||
| 14 | public function __construct(string $fq_class_name, string $method_name) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Takes any valid reference to a method id and converts |
||
| 22 | * it into a MethodIdentifier |
||
| 23 | * @param string|MethodIdentifier $method_id |
||
| 24 | */ |
||
| 25 | public static function wrap($method_id): self |
||
| 29 | |||
| 30 | public static function isValidMethodIdReference(string $method_id): bool |
||
| 34 | |||
| 35 | public static function fromMethodIdReference(string $method_id): self |
||
| 45 | |||
| 46 | /** @return non-empty-string */ |
||
| 47 | public function __toString() |
||
| 51 | } |
||
| 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.