1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Rules\RestrictedUsage;
4:
5: /**
6: * @api
7: */
8: final class RestrictedUsage
9: {
10:
11: private function __construct(
12: public readonly string $errorMessage,
13: public readonly string $identifier,
14: public readonly ?string $tip,
15: )
16: {
17: }
18:
19: public static function create(
20: string $errorMessage,
21: string $identifier,
22: ?string $tip = null,
23: ): self
24: {
25: return new self($errorMessage, $identifier, $tip);
26: }
27:
28: }
29: