kuvalda-file/schema/FileTypes.php

37 lines
1006 B
PHP
Raw Normal View History

2024-11-20 15:56:54 +03:00
<?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());
}
}