Przeglądaj źródła

Update strategy stubs

shalvah 5 lat temu
rodzic
commit
f3be75dd2c

+ 1 - 1
src/Commands/MakeStrategy.php

@@ -8,7 +8,7 @@ class MakeStrategy extends GeneratorCommand
 {
     protected $signature = 'scribe:strategy
                             {name : Name of the class.}
-                            {stage : Stage the strategy belongs to. One of "metadata", "urlParameters", "queryParameters", "bodyParameters", "headers", "responseFields", "responses".}
+                            {stage : The stage the strategy belongs to. One of "metadata", "urlParameters", "queryParameters", "bodyParameters", "headers", "responses", "responseFields".}
                             {--force : Overwrite file if it exists}
     ';
 

+ 4 - 0
src/Commands/stubs/strategy.stub

@@ -11,6 +11,10 @@ use Knuckles\Scribe\Extracting\Strategies\Strategy;
 
 class DummyClass extends Strategy
 {
+    /**
+     * The stage the strategy belongs to.
+     * One of "metadata", "urlParameters", "queryParameters", "bodyParameters", "headers", "responses", "responseFields".
+     */
     public $stage = 'dummyStage';
 
     /**