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 'GoetasWebservices\\Xsd\\XsdToPhp\\XMLSchema\\DateTime'; }); $this->addAliasMap("http://www.w3.org/2001/XMLSchema", "time", function (Type $type) { return 'GoetasWebservices\\Xsd\\XsdToPhp\\XMLSchema\\Time'; }); $this->addAliasMap("http://www.w3.org/2001/XMLSchema", "date", function (Type $type) { return "DateTime<'Y-m-d'>"; }); }
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"; }); }