@@ -43,6 +43,9 @@ discard block |
||
| 43 | 43 | $this->save($content, "./{$path}/{$name}.php", "{$name} model"); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $rule |
|
| 48 | + */ |
|
| 46 | 49 | protected function getFieldByRuleAsArrayFields($rule, $allowPartialMatch = false) |
| 47 | 50 | { |
| 48 | 51 | $rules = $this->getRules(false); |
@@ -63,6 +66,9 @@ discard block |
||
| 63 | 66 | }, $fields)); |
| 64 | 67 | } |
| 65 | 68 | |
| 69 | + /** |
|
| 70 | + * @param string $arg |
|
| 71 | + */ |
|
| 66 | 72 | protected function getAsArrayFields($arg, $isOption = true) |
| 67 | 73 | { |
| 68 | 74 | $arg = ($isOption) ? $this->option($arg) : $this->argument($arg); |
@@ -97,6 +103,10 @@ discard block |
||
| 97 | 103 | return implode(PHP_EOL, $relations); |
| 98 | 104 | } |
| 99 | 105 | |
| 106 | + /** |
|
| 107 | + * @param string $type |
|
| 108 | + * @param string $option |
|
| 109 | + */ |
|
| 100 | 110 | protected function getRelationsByType($type, $option, $withTimestamps = false) |
| 101 | 111 | { |
| 102 | 112 | $relations = []; |