File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,6 @@ static function clearTypes(): void
22
22
static ::$ types = [];
23
23
}
24
24
25
- /**
26
- * @throws Exception
27
- */
28
- public static function get (string $ classname ): callable
29
- {
30
- return static fn () => static ::byClass ($ classname , static ::cacheName ($ classname ));
31
- }
32
-
33
25
public static function set (Type $ type ): callable |Type
34
26
{
35
27
// @phpstan-ignore-next-line
@@ -41,14 +33,6 @@ public static function set(Type $type): callable|Type
41
33
return self ::$ types [$ cachedName ];
42
34
}
43
35
44
- protected static function byClass (string $ classname , string $ cacheName ): Type
45
- {
46
- return static ::fromCache ($ cacheName , function () use ($ classname ) {
47
- assert (class_exists ($ classname ));
48
- return new $ classname ();
49
- });
50
- }
51
-
52
36
public static function fromCache (string $ cachename , callable $ getter ): Type
53
37
{
54
38
if (!isset (static ::$ types [$ cachename ])) {
You can’t perform that action at this time.
0 commit comments