You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I even managed to generate the code from XSD, but the simple type xsd has restrictions for each type and these restrictions were not generated in the code. did I do something wrong?
I even managed to generate the code from XSD, but the simple type xsd has restrictions for each type and these restrictions were not generated in the code. did I do something wrong?
for example:
XSD:
<xsd:simpleType name="tsEmail"> <xsd:restriction base="xsd:string"> <xsd:maxLength value="80" /> <xsd:minLength value="1" /> <xsd:whiteSpace value="collapse" /> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="tsTelefone"> <xsd:restriction base="xsd:string"> <xsd:maxLength value="11" /> <xsd:minLength value="1" /> <xsd:whiteSpace value="collapse" /> </xsd:restriction> </xsd:simpleType> <xsd:complexType name="tcContato"> <xsd:sequence> <xsd:element name="Telefone" type="tsTelefone" minOccurs="0" maxOccurs="1" /> <xsd:element name="Email" type="tsEmail" minOccurs="0" maxOccurs="1" /> </xsd:sequence> </xsd:complexType>
php:
`<?php
namespace ABRASF;
/**
Class representing TcContatoType
XSD Type: tcContato
/
class TcContatoType
{
/*
*/
private $telefone = null;
/**
*/
private $email = null;
/**
*/
public function getTelefone()
{
return $this->telefone;
}
/**
*/
public function setTelefone($telefone)
{
$this->telefone = $telefone;
return $this;
}
/**
*/
public function getEmail()
{
return $this->email;
}
/**
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
}
`
The text was updated successfully, but these errors were encountered: