public __construct ( Goetas\Xsd\XsdToPhp\Naming\NamingStrategy $namingStrategy ) | ||
$namingStrategy | Goetas\Xsd\XsdToPhp\Naming\NamingStrategy |
public function __construct(NamingStrategy $namingStrategy)
{
parent::__construct($namingStrategy);
$this->addAliasMap("http://www.w3.org/2001/XMLSchema", "dateTime", function (Type $type) {
return "DateTime";
});
$this->addAliasMap("http://www.w3.org/2001/XMLSchema", "time", function (Type $type) {
return "DateTime";
});
$this->addAliasMap("http://www.w3.org/2001/XMLSchema", "date", function (Type $type) {
return "DateTime";
});
$this->addAliasMap("http://www.w3.org/2001/XMLSchema", "anySimpleType", function (Type $type) {
return "mixed";
});
$this->addAliasMap("http://www.w3.org/2001/XMLSchema", "anyType", function (Type $type) {
return "mixed";
});
}
public function __construct(NamingStrategy $namingStrategy) { parent::__construct($namingStrategy); $this->addAliasMap("http://www.w3.org/2001/XMLSchema", "dateTime", function (Type $type) { return "DateTime"; }); $this->addAliasMap("http://www.w3.org/2001/XMLSchema", "time", function (Type $type) { return "DateTime"; }); $this->addAliasMap("http://www.w3.org/2001/XMLSchema", "date", function (Type $type) { return "DateTime"; }); $this->addAliasMap("http://www.w3.org/2001/XMLSchema", "anySimpleType", function (Type $type) { return "mixed"; }); $this->addAliasMap("http://www.w3.org/2001/XMLSchema", "anyType", function (Type $type) { return "mixed"; }); $this->addAliasMap("http://www.w3.org/2001/XMLSchema", "base64Binary", function (Type $type) { return "string"; }); }