Skip to content

Commit

Permalink
refactor: convert private methods to protected, for mote extendibility
Browse files Browse the repository at this point in the history
  • Loading branch information
WatheqAlshowaiter committed Jul 26, 2024
1 parent f3eabf1 commit f9f23a5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/RequiredFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static function getRequiredFieldsForOlderVersions(
}
}

private static function getRequiredFieldsForSqlite(
protected static function getRequiredFieldsForSqlite(
$withNullables = false,
$withDefaults = false,
$withPrimaryKey = false
Expand All @@ -121,7 +121,7 @@ private static function getRequiredFieldsForSqlite(
->toArray();
}

private static function getRequiredFieldsForMysqlAndMariaDb(
protected static function getRequiredFieldsForMysqlAndMariaDb(
$withNullables = false,
$withDefaults = false,
$withPrimaryKey = false
Expand Down Expand Up @@ -166,7 +166,7 @@ private static function getRequiredFieldsForMysqlAndMariaDb(
->toArray();
}

private static function getRequiredFieldsForPostgres(
protected static function getRequiredFieldsForPostgres(
$withNullables = false,
$withDefaults = false,
$withPrimaryKey = false
Expand Down Expand Up @@ -242,7 +242,7 @@ private static function getRequiredFieldsForPostgres(
->toArray();
}

private static function getRequiredFieldsForSqlServer(
protected static function getRequiredFieldsForSqlServer(
$withNullables = false,
$withDefaults = false,
$withPrimaryKey = false
Expand Down Expand Up @@ -302,7 +302,7 @@ private static function getRequiredFieldsForSqlServer(
/**
* @return string
*/
private static function getTableFromThisModel()
protected static function getTableFromThisModel()
{
$table = (new self)->getTable();

Expand Down

0 comments on commit f9f23a5

Please sign in to comment.