Skip to content

Commit cb280be

Browse files
authored
Update docs for the methods
1 parent 4c99a07 commit cb280be

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/Traits/GeneratorReplacers.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ protected function replacePrimaryKey(&$stub, $primaryKey)
5252

5353
return $this;
5454
}
55+
5556
/**
5657
* Replace the app_name fo the given stub.
5758
*
@@ -124,18 +125,40 @@ protected function getModelCapName($name)
124125
return ucwords($name);
125126
}
126127

128+
/**
129+
* Gets a model name.
130+
*
131+
* @param string $name
132+
*
133+
* @return string
134+
*/
127135
protected function getModelName($name)
128136
{
129137
return strtolower($name);
130138
}
131139

140+
/**
141+
* Gets a model name in a plural formal.
142+
*
143+
* @param string $name
144+
*
145+
* @return string
146+
*/
132147
protected function getModelPluralName($name)
133148
{
134149
return str_plural(strtolower($name));
135150
}
136151

152+
/**
153+
* Gets a model name in a plural formal "Caps".
154+
*
155+
* @param string $name
156+
*
157+
* @return string
158+
*/
137159
protected function getModelNamePluralCap($name)
138160
{
139161
return ucwords($this->getModelPluralName($name));
140162
}
163+
141164
}

0 commit comments

Comments
 (0)