We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa75c61 commit c3c53f1Copy full SHA for c3c53f1
Generator/DocumentGenerator.php
@@ -59,10 +59,14 @@ public function is<methodName>()
59
* Sets <fieldName>
60
*
61
* @param string $<fieldName>
62
+ *
63
+ * @return self
64
*/
65
public function set<methodName>($<fieldName>)
66
{
67
<spaces>$this-><fieldName> = $<fieldName>;
68
+
69
+<spaces>return $this;
70
}';
71
72
/**
@@ -160,7 +164,7 @@ private function generateDocumentMethods(array $metadata)
160
164
if (isset($property['property_type']) && $property['property_type'] === 'boolean') {
161
165
$lines[] = $this->generateDocumentMethod($property, $this->isMethodTemplate) . "\n";
162
166
}
163
-
167
168
$lines[] = $this->generateDocumentMethod($property, $this->getMethodTemplate) . "\n";
169
170
0 commit comments