kuvalda-settings/schema/Types.php

27 lines
628 B
PHP
Raw Normal View History

2024-11-20 15:59:13 +03:00
<?php
namespace dominion\settings\schema;
trait Types
{
private static $settings;
private static $settingsPagination;
//
private static $settingsMutation;
public static function settings()
{
return self::$settings ?: (self::$settings = new SettingsType());
}
public static function settingsPagination()
{
return self::$settingsPagination ?: (self::$settingsPagination = new SettingsPaginationType());
}
//
public static function settingsMutation()
{
return self::$settingsMutation ?: (self::$settingsMutation = new SettingsMutationType());
}
}