File tree 4 files changed +21
-19
lines changed
4 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function getValue(): ValueGenerator
56
56
return $ this ->value ;
57
57
}
58
58
59
- public function generate (): \ PhpParser \ Node \Stmt \ClassConst
59
+ public function generate (): Node \Stmt \ClassConst
60
60
{
61
61
return new Node \Stmt \ClassConst (
62
62
[
Original file line number Diff line number Diff line change @@ -172,35 +172,35 @@ public function getDocBlockComment(): ?string
172
172
return $ this ->docBlockComment ;
173
173
}
174
174
175
- public function setDocBlockComment (?string $ docBlockComment ): void
175
+ public function setDocBlockComment (?string $ docBlockComment ): self
176
176
{
177
177
$ this ->docBlockComment = $ docBlockComment ;
178
+
179
+ return $ this ;
178
180
}
179
181
180
182
public function getReturnTypeDocBlockHint (): ?string
181
183
{
182
184
return $ this ->returnTypeDocBlockHint ;
183
185
}
184
186
185
- public function setReturnTypeDocBlockHint (?string $ typeDocBlockHint ): void
187
+ public function setReturnTypeDocBlockHint (?string $ typeDocBlockHint ): self
186
188
{
187
189
$ this ->returnTypeDocBlockHint = $ typeDocBlockHint ;
190
+
191
+ return $ this ;
188
192
}
189
193
190
- /**
191
- * @return bool
192
- */
193
194
public function getTyped (): bool
194
195
{
195
196
return $ this ->typed ;
196
197
}
197
198
198
- /**
199
- * @param bool $typed
200
- */
201
- public function setTyped (bool $ typed ): void
199
+ public function setTyped (bool $ typed ): self
202
200
{
203
201
$ this ->typed = $ typed ;
202
+
203
+ return $ this ;
204
204
}
205
205
206
206
/**
Original file line number Diff line number Diff line change @@ -77,11 +77,7 @@ public function __construct(
77
77
}
78
78
}
79
79
80
- /**
81
- * @param string $type
82
- * @return ParameterGenerator
83
- */
84
- public function setType ($ type ): self
80
+ public function setType (string $ type ): self
85
81
{
86
82
$ this ->type = TypeGenerator::fromTypeString ($ type );
87
83
@@ -99,7 +95,7 @@ public function getType(): ?TypeGenerator
99
95
*/
100
96
public function setName (string $ name ): self
101
97
{
102
- $ this ->name = ( string ) $ name ;
98
+ $ this ->name = $ name ;
103
99
104
100
return $ this ;
105
101
}
@@ -185,9 +181,11 @@ public function getTypeDocBlockHint(): ?string
185
181
/**
186
182
* @param string|null $typeDocBlockHint
187
183
*/
188
- public function setTypeDocBlockHint (?string $ typeDocBlockHint ): void
184
+ public function setTypeDocBlockHint (?string $ typeDocBlockHint ): self
189
185
{
190
186
$ this ->typeDocBlockHint = $ typeDocBlockHint ;
187
+
188
+ return $ this ;
191
189
}
192
190
193
191
public function generate (): Node \Param
Original file line number Diff line number Diff line change @@ -99,9 +99,11 @@ public function getDocBlockComment(): ?string
99
99
return $ this ->docBlockComment ;
100
100
}
101
101
102
- public function setDocBlockComment (?string $ docBlockComment ): void
102
+ public function setDocBlockComment (?string $ docBlockComment ): self
103
103
{
104
104
$ this ->docBlockComment = $ docBlockComment ;
105
+
106
+ return $ this ;
105
107
}
106
108
107
109
/**
@@ -146,9 +148,11 @@ public function getTypeDocBlockHint(): ?string
146
148
return $ this ->typeDocBlockHint ;
147
149
}
148
150
149
- public function setTypeDocBlockHint (?string $ typeDocBlockHint ): void
151
+ public function setTypeDocBlockHint (?string $ typeDocBlockHint ): self
150
152
{
151
153
$ this ->typeDocBlockHint = $ typeDocBlockHint ;
154
+
155
+ return $ this ;
152
156
}
153
157
154
158
public function generate (): Property
You can’t perform that action at this time.
0 commit comments