kuvalda-settings/schema/Types.php

27 lines
628 B
PHP

<?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());
}
}