@@ -39,38 +39,6 @@ final class ClassType extends ClassLike
39
39
private array $ implements = [];
40
40
41
41
42
- /** @deprecated create object using 'new Nette\PhpGenerator\ClassType' */
43
- public static function class (?string $ name ): self
44
- {
45
- trigger_error (__METHOD__ . "() is deprecated, create object using 'new Nette \\PhpGenerator \\ClassType " , E_USER_DEPRECATED );
46
- return new self ($ name );
47
- }
48
-
49
-
50
- /** @deprecated create object using 'new Nette\PhpGenerator\InterfaceType' */
51
- public static function interface (string $ name ): InterfaceType
52
- {
53
- trigger_error (__METHOD__ . "() is deprecated, create object using 'new Nette \\PhpGenerator \\InterfaceType' " , E_USER_DEPRECATED );
54
- return new InterfaceType ($ name );
55
- }
56
-
57
-
58
- /** @deprecated create object using 'new Nette\PhpGenerator\TraitType' */
59
- public static function trait (string $ name ): TraitType
60
- {
61
- trigger_error (__METHOD__ . "() is deprecated, create object using 'new Nette \\PhpGenerator \\TraitType' " , E_USER_DEPRECATED );
62
- return new TraitType ($ name );
63
- }
64
-
65
-
66
- /** @deprecated create object using 'new Nette\PhpGenerator\EnumType' */
67
- public static function enum (string $ name ): EnumType
68
- {
69
- trigger_error (__METHOD__ . "() is deprecated, create object using 'new Nette \\PhpGenerator \\EnumType' " , E_USER_DEPRECATED );
70
- return new EnumType ($ name );
71
- }
72
-
73
-
74
42
public function __construct (?string $ name = null , ?PhpNamespace $ namespace = null )
75
43
{
76
44
if ($ name === null ) {
@@ -82,14 +50,6 @@ public function __construct(?string $name = null, ?PhpNamespace $namespace = nul
82
50
}
83
51
84
52
85
- /** @deprecated */
86
- public function getType (): string
87
- {
88
- trigger_error (__METHOD__ . "() is deprecated, method always returns 'class' " , E_USER_DEPRECATED );
89
- return self ::TYPE_CLASS ;
90
- }
91
-
92
-
93
53
public function setFinal (bool $ state = true ): static
94
54
{
95
55
$ this ->final = $ state ;
0 commit comments