代码初始化

This commit is contained in:
2025-08-07 20:21:47 +08:00
commit 50f3a2dbb0
2191 changed files with 374790 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
require_once 'XMLAttribute.php';
require_once 'AttributeRule.php';
require_once 'Option.php';
class ServiceSchemaFactory
{
public static function createAttribute($id = null, $name = null, $type = null, $valueType = null)
{
$attribute = new XMLAttribute();
$attribute->setId($id);
$attribute->setName($name);
$attribute->setType($type);
$attribute->setValueType($valueType);
return $attribute;
}
public static function createRule($type = null, $name = null, $value = null)
{
return new AttributeRule($type, $name, $value);
}
public static function createOption($displayName = null, $value = null)
{
return new Option($displayName, $value);
}
}