@@ -16,13 +16,11 @@ public function test_it_should_create_builder_with_dependency_and_interface(): v
16
16
{
17
17
$ FQCN = 'HappyIsland ' ;
18
18
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
19
- $ classDescriptionBuilder ->setFilePath ('src/Foo.php ' )
20
- ->setClassName ($ FQCN );
21
-
22
- $ classDependency = new ClassDependency ('DepClass ' , 10 );
23
-
24
- $ classDescriptionBuilder ->addDependency ($ classDependency );
25
- $ classDescriptionBuilder ->addInterface ('InterfaceClass ' , 10 );
19
+ $ classDescriptionBuilder
20
+ ->setFilePath ('src/Foo.php ' )
21
+ ->setClassName ($ FQCN )
22
+ ->addDependency (new ClassDependency ('DepClass ' , 10 ))
23
+ ->addInterface ('InterfaceClass ' , 10 );
26
24
27
25
$ classDescription = $ classDescriptionBuilder ->build ();
28
26
@@ -36,9 +34,10 @@ public function test_it_should_create_final_class(): void
36
34
{
37
35
$ FQCN = 'HappyIsland ' ;
38
36
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
39
- $ classDescriptionBuilder ->setFilePath ('src/Foo.php ' )
40
- ->setClassName ($ FQCN );
41
- $ classDescriptionBuilder ->setFinal (true );
37
+ $ classDescriptionBuilder
38
+ ->setFilePath ('src/Foo.php ' )
39
+ ->setClassName ($ FQCN )
40
+ ->setFinal (true );
42
41
43
42
$ classDescription = $ classDescriptionBuilder ->build ();
44
43
@@ -51,9 +50,10 @@ public function test_it_should_create_not_final_class(): void
51
50
{
52
51
$ FQCN = 'HappyIsland ' ;
53
52
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
54
- $ classDescriptionBuilder ->setFilePath ('src/Foo.php ' )
55
- ->setClassName ($ FQCN );
56
- $ classDescriptionBuilder ->setFinal (false );
53
+ $ classDescriptionBuilder
54
+ ->setFilePath ('src/Foo.php ' )
55
+ ->setClassName ($ FQCN )
56
+ ->setFinal (false );
57
57
58
58
$ classDescription = $ classDescriptionBuilder ->build ();
59
59
@@ -66,9 +66,10 @@ public function test_it_should_create_abstract_class(): void
66
66
{
67
67
$ FQCN = 'HappyIsland ' ;
68
68
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
69
- $ classDescriptionBuilder ->setFilePath ('src/Foo.php ' )
70
- ->setClassName ($ FQCN );
71
- $ classDescriptionBuilder ->setAbstract (true );
69
+ $ classDescriptionBuilder
70
+ ->setFilePath ('src/Foo.php ' )
71
+ ->setClassName ($ FQCN )
72
+ ->setAbstract (true );
72
73
73
74
$ classDescription = $ classDescriptionBuilder ->build ();
74
75
@@ -81,9 +82,10 @@ public function test_it_should_create_not_abstract_class(): void
81
82
{
82
83
$ FQCN = 'HappyIsland ' ;
83
84
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
84
- $ classDescriptionBuilder ->setFilePath ('src/Foo.php ' )
85
- ->setClassName ($ FQCN );
86
- $ classDescriptionBuilder ->setAbstract (false );
85
+ $ classDescriptionBuilder
86
+ ->setFilePath ('src/Foo.php ' )
87
+ ->setClassName ($ FQCN )
88
+ ->setAbstract (false );
87
89
88
90
$ classDescription = $ classDescriptionBuilder ->build ();
89
91
@@ -96,9 +98,10 @@ public function test_it_should_create_annotated_class(): void
96
98
{
97
99
$ FQCN = 'HappyIsland ' ;
98
100
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
99
- $ classDescriptionBuilder ->setFilePath ('src/Foo.php ' )
100
- ->setClassName ($ FQCN );
101
- $ classDescriptionBuilder ->addDocBlock ('/**
101
+ $ classDescriptionBuilder
102
+ ->setFilePath ('src/Foo.php ' )
103
+ ->setClassName ($ FQCN )
104
+ ->addDocBlock ('/**
102
105
* @psalm-immutable
103
106
*/ ' );
104
107
@@ -118,9 +121,10 @@ public function test_it_should_add_attributes(): void
118
121
{
119
122
$ FQCN = 'HappyIsland ' ;
120
123
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
121
- $ classDescriptionBuilder ->setFilePath ('src/Foo.php ' )
122
- ->setClassName ($ FQCN );
123
- $ classDescriptionBuilder ->addAttribute ('AttrClass ' , 27 );
124
+ $ classDescriptionBuilder
125
+ ->setFilePath ('src/Foo.php ' )
126
+ ->setClassName ($ FQCN )
127
+ ->addAttribute ('AttrClass ' , 27 );
124
128
125
129
$ classDescription = $ classDescriptionBuilder ->build ();
126
130
@@ -134,9 +138,10 @@ public function test_it_should_create_interface(): void
134
138
{
135
139
$ FQCN = 'HappyIsland ' ;
136
140
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
137
- $ classDescriptionBuilder ->setFilePath ('src/Foo.php ' )
138
- ->setClassName ($ FQCN );
139
- $ classDescriptionBuilder ->setInterface (true );
141
+ $ classDescriptionBuilder
142
+ ->setFilePath ('src/Foo.php ' )
143
+ ->setClassName ($ FQCN )
144
+ ->setInterface (true );
140
145
141
146
$ classDescription = $ classDescriptionBuilder ->build ();
142
147
@@ -149,9 +154,10 @@ public function test_it_should_create_not_interface(): void
149
154
{
150
155
$ FQCN = 'HappyIsland ' ;
151
156
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
152
- $ classDescriptionBuilder ->setFilePath ('src/Foo.php ' )
153
- ->setClassName ($ FQCN );
154
- $ classDescriptionBuilder ->setInterface (false );
157
+ $ classDescriptionBuilder
158
+ ->setFilePath ('src/Foo.php ' )
159
+ ->setClassName ($ FQCN )
160
+ ->setInterface (false );
155
161
156
162
$ classDescription = $ classDescriptionBuilder ->build ();
157
163
@@ -164,9 +170,10 @@ public function test_it_should_create_trait(): void
164
170
{
165
171
$ FQCN = 'HappyIsland ' ;
166
172
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
167
- $ classDescriptionBuilder ->setFilePath ('src/Foo.php ' )
168
- ->setClassName ($ FQCN );
169
- $ classDescriptionBuilder ->setTrait (true );
173
+ $ classDescriptionBuilder
174
+ ->setFilePath ('src/Foo.php ' )
175
+ ->setClassName ($ FQCN )
176
+ ->setTrait (true );
170
177
171
178
$ classDescription = $ classDescriptionBuilder ->build ();
172
179
@@ -180,8 +187,8 @@ public function test_it_should_create_not_trait(): void
180
187
$ FQCN = 'HappyIsland ' ;
181
188
$ classDescriptionBuilder = new ClassDescriptionBuilder ();
182
189
$ classDescriptionBuilder ->setFilePath ('src/Foo.php ' )
183
- ->setClassName ($ FQCN );
184
- $ classDescriptionBuilder ->setTrait (false );
190
+ ->setClassName ($ FQCN )
191
+ ->setTrait (false );
185
192
186
193
$ classDescription = $ classDescriptionBuilder ->build ();
187
194
0 commit comments