use RuntimeException;
use Shopware\Bundle\ContentTypeBundle\Structs\Type;
class TypeProvider{ private $types =
[];
public function __construct(array
$types, TypeBuilder
$typeBuilder) { foreach ($types as $name =>
$type) { $this->types
[$name] =
$typeBuilder->
createType($name,
$type);
} } /**
* @return array<string, Type>
*/
public function getTypes(): array
{ return $this->types;
}