This commit is contained in:
2024-11-20 15:56:54 +03:00
commit f23aee6dcb
15 changed files with 1557 additions and 0 deletions

36
schema/FileTypes.php Normal file
View File

@@ -0,0 +1,36 @@
<?php
namespace dominion\file\schema;
trait FileTypes
{
private static $fileConfig;
private static $fileConfigPagination;
private static $fileConfigResizeStep;
private static $file;
//
private static $fileConfigMutation;
public static function fileConfig()
{
return self::$fileConfig ?: (self::$fileConfig = new FileConfigType());
}
public static function fileConfigPagination()
{
return self::$fileConfigPagination ?: (self::$fileConfigPagination = new FileConfigPaginationType());
}
public static function fileConfigResizeStep()
{
return self::$fileConfigResizeStep ?: (self::$fileConfigResizeStep = new FileConfigResizeStepType());
}
public static function file()
{
return self::$file ?: (self::$file = new FileType());
}
//
public static function fileConfigMutation()
{
return self::$fileConfigMutation ?: (self::$fileConfigMutation = new FileConfigMutationType());
}
}