__construct() 공개 메소드

public __construct ( Goetas\Xsd\XsdToPhp\Naming\NamingStrategy $namingStrategy )
$namingStrategy Goetas\Xsd\XsdToPhp\Naming\NamingStrategy
예제 #1
0
 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'>";
     });
 }
예제 #2
0
 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";
     });
 }