@@ -35,41 +35,37 @@ final class ClassType
35
35
VISIBILITY_PROTECTED = 'protected ' ,
36
36
VISIBILITY_PRIVATE = 'private ' ;
37
37
38
- /** @var PhpNamespace|null */
39
- private $ namespace ;
38
+ private ?PhpNamespace $ namespace ;
40
39
41
- /** @var string|null */
42
- private $ name ;
40
+ private ?string $ name ;
43
41
44
- /** @var string class|interface|trait */
45
- private $ type = self ::TYPE_CLASS ;
42
+ /** class|interface|trait */
43
+ private string $ type = self ::TYPE_CLASS ;
46
44
47
- /** @var bool */
48
- private $ final = false ;
45
+ private bool $ final = false ;
49
46
50
- /** @var bool */
51
- private $ abstract = false ;
47
+ private bool $ abstract = false ;
52
48
53
49
/** @var string|string[] */
54
- private $ extends = [];
50
+ private string | array $ extends = [];
55
51
56
52
/** @var string[] */
57
- private $ implements = [];
53
+ private array $ implements = [];
58
54
59
55
/** @var TraitUse[] */
60
- private $ traits = [];
56
+ private array $ traits = [];
61
57
62
58
/** @var Constant[] name => Constant */
63
- private $ consts = [];
59
+ private array $ consts = [];
64
60
65
61
/** @var Property[] name => Property */
66
- private $ properties = [];
62
+ private array $ properties = [];
67
63
68
64
/** @var Method[] name => Method */
69
- private $ methods = [];
65
+ private array $ methods = [];
70
66
71
67
/** @var EnumCase[] name => EnumCase */
72
- private $ cases = [];
68
+ private array $ cases = [];
73
69
74
70
75
71
public static function class (?string $ name ): self
0 commit comments