Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/GenericModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ abstract class GenericModel extends BaseModel
*
* Caches etc. first, database after that, search etc. at the end
*
* @var class-string<DriverInterface>[]
* @var string[]
*/
protected static array $drivers = [
Redis::ID,
Expand All @@ -95,7 +95,7 @@ abstract class GenericModel extends BaseModel
*
* Set this to null to use the reverse order of static::$drivers which implement SavableInterface
*
* @var class-string<SavableInterface>[]|null
* @var string[]|null
*/
protected static ?array $saveDrivers = null;

Expand All @@ -104,7 +104,7 @@ abstract class GenericModel extends BaseModel
*
* Set this to null to use the reverse order of static::$drivers which implement DeletableInterface
*
* @var class-string<DeletableInterface>[]|null
* @var string[]|null
*/
protected static ?array $deleteDrivers = null;

Expand All @@ -131,7 +131,7 @@ protected static function getDriverRegistry(): DriverRegistryInterface
/**
* Get all gettable drivers from static::$drivers
*
* @return class-string<GettableInterface>[]
* @return string[]
*/
protected static function getGettableDrivers(): array
{
Expand All @@ -147,7 +147,7 @@ protected static function getGettableDrivers(): array
/**
* Get all select queryable drivers from static::$drivers
*
* @return class-string<SelectQueryableInterface>[]
* @return string[]
*/
protected static function getSelectQueryableDrivers(): array
{
Expand All @@ -163,7 +163,7 @@ protected static function getSelectQueryableDrivers(): array
/**
* Get all savable drivers from static::$saveDrivers or static::$drivers
*
* @return class-string<SavableInterface>[]
* @return string[]
*/
protected static function getSavableDrivers(): array
{
Expand All @@ -179,7 +179,7 @@ protected static function getSavableDrivers(): array
/**
* Get all update queryable drivers from static::$saveDrivers or static::$drivers
*
* @return class-string<UpdateQueryableInterface>[]
* @return string[]
*/
protected static function getUpdateQueryableDrivers(): array
{
Expand All @@ -195,7 +195,7 @@ protected static function getUpdateQueryableDrivers(): array
/**
* Get all savable drivers from static::$deleteDrivers or static::$drivers
*
* @return class-string<DeletableInterface>[]
* @return string[]
*/
protected static function getDeletableDrivers(): array
{
Expand All @@ -211,7 +211,7 @@ protected static function getDeletableDrivers(): array
/**
* Get all delete queryable drivers from static::$deleteDrivers or static::$drivers
*
* @return class-string<DeleteQueryableInterface>[]
* @return string[]
*/
protected static function getDeleteQueryableDrivers(): array
{
Expand All @@ -227,7 +227,7 @@ protected static function getDeleteQueryableDrivers(): array
/**
* Get all searchable drivers from static::$drivers
*
* @return class-string<SearchableInterface>[]
* @return string[]
*/
protected static function getSearchableDrivers(): array
{
Expand All @@ -243,7 +243,7 @@ protected static function getSearchableDrivers(): array
/**
* Get all search-countable drivers from static::$drivers
*
* @return class-string<SearchCountableInterface>[]
* @return string[]
*/
protected static function getSearchCountableDrivers(): array
{
Expand Down
Loading