@@ -45,6 +45,9 @@ discard block |
||
45 | 45 | $this->save($content, "./App/Models/{$name}.php", "{$name} model"); |
46 | 46 | } |
47 | 47 | |
48 | + /** |
|
49 | + * @param string $arg |
|
50 | + */ |
|
48 | 51 | protected function getAsArrayFields($arg, $isOption = true) |
49 | 52 | { |
50 | 53 | $arg = ($isOption) ? $this->option($arg) : $this->argument($arg); |
@@ -79,6 +82,9 @@ discard block |
||
79 | 82 | return implode(PHP_EOL, $relations); |
80 | 83 | } |
81 | 84 | |
85 | + /** |
|
86 | + * @param string $option |
|
87 | + */ |
|
82 | 88 | protected function getImages($option) |
83 | 89 | { |
84 | 90 | $images = []; |
@@ -106,6 +112,10 @@ discard block |
||
106 | 112 | return implode(PHP_EOL, $media); |
107 | 113 | } |
108 | 114 | |
115 | + /** |
|
116 | + * @param string $type |
|
117 | + * @param string $option |
|
118 | + */ |
|
109 | 119 | protected function getRelationsByType($type, $option, $withTimestamps = false) |
110 | 120 | { |
111 | 121 | $relations = []; |