mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-17 17:47:13 +00:00
Private->protected
This commit is contained in:
@@ -595,7 +595,7 @@ class ModelsCommand extends Command
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
private function isRelationNullable(string $relation, Relation $relationObj): bool
|
protected function isRelationNullable(string $relation, Relation $relationObj): bool
|
||||||
{
|
{
|
||||||
$reflectionObj = new \ReflectionObject($relationObj);
|
$reflectionObj = new \ReflectionObject($relationObj);
|
||||||
|
|
||||||
@@ -830,7 +830,7 @@ class ModelsCommand extends Command
|
|||||||
* @param string $className
|
* @param string $className
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function getCollectionClass($className)
|
protected function getCollectionClass($className)
|
||||||
{
|
{
|
||||||
// Return something in the very very unlikely scenario the model doesn't
|
// Return something in the very very unlikely scenario the model doesn't
|
||||||
// have a newCollection() method.
|
// have a newCollection() method.
|
||||||
@@ -935,7 +935,7 @@ class ModelsCommand extends Command
|
|||||||
* @param ReflectionClass $reflection
|
* @param ReflectionClass $reflection
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function getClassKeyword(ReflectionClass $reflection)
|
protected function getClassKeyword(ReflectionClass $reflection)
|
||||||
{
|
{
|
||||||
if ($reflection->isFinal()) {
|
if ($reflection->isFinal()) {
|
||||||
$keyword = 'final ';
|
$keyword = 'final ';
|
||||||
|
|||||||
Reference in New Issue
Block a user