for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Xml;
use Xml\Impl\ModelBuilderImpl;
use Xml\Instance\ModelElementInstanceInterface;
use Xml\Type\{
ModelElementTypeInterface,
ModelElementTypeBuilderInterface
};
abstract class ModelBuilder
{
abstract public function alternativeNamespace(string $alternativeNs, string $actualNs): ModelBuilder;
abstract public function defineType(
string $modelInstanceType,
string $typeName
): ModelElementTypeBuilderInterface;
abstract public function defineGenericType(string $typeName, string $typeNamespaceUri): ModelElementTypeInterface;
abstract public function build(): ModelInterface;
public static function createInstance(string $modelName): ModelBuilder
return new ModelBuilderImpl($modelName);
}