WSCOMUN  2.1.2
Web Services Comunes para PHP/GVHidra
Composer.php
1 <?php
3 
4 use Exception;
5 use SoapVar;
6 use DateTime;
7 use ArrayObject;
8 use stdClass;
9 
10 const unbounded = 'unbounded';
11 
13 {
17  private static $NAMESPACE_ESP = 'http://intermediacion.redsara.es/scsp/esquemas/datosespecificos';
18  private static $NAMESPACE_PET = 'http://intermediacion.redsara.es/scsp/esquemas/V3/peticion';
19  private static $NAMESPACE_SR = 'http://intermediacion.redsara.es/scsp/esquemas/V3/solicitudRespuesta';
20 
25  private $nifEmisor = null;
26 
31  private $nombreEmisor = null;
32 
37  private $codProcedimiento = null;
38 
43  private $nombreProcedimiento = null;
44 
49  private $nombreCompletoFuncionario = null;
50 
55  private $nifFuncionario = null;
56 
61  private $tipoDocumentacion = null;
62 
67  private $documentacion = null;
68 
73  private $nombreCompleto = null;
74 
79  private $nombre = null;
80 
85  private $apellido1 = null;
86 
91  private $apellido2 = null;
92 
97  private $identificadorSolicitante = null;
98 
103  private $nombreSolicitante = null;
104 
109  private $unidadTramitadora = null;
110 
115  private $finalidad = null;
116 
121  private $consentimiento = null;
122 
127  private $idExpediente = null;
128 
133  private $oEspecifico = null;
134 
135 
143  public function setEmisor($nif, $nombre) {
144  $this->nifEmisor = $nif;
145  $this->nombreEmisor = $nombre;
146  }
147 
155  public function setProcedimiento($codigo, $nombre) {
156  $this->codProcedimiento = $codigo;
157  $this->nombreProcedimiento = $nombre;
158  }
159 
167  public function setFuncionario($nombreCompleto, $nif) {
168  $this->nombreCompletoFuncionario = $nombreCompleto;
169  $this->nifFuncionario = $nif;
170  }
171 
183  public function setTitular($tipoDocumentacion, $documentacion, $nombreCompleto = null, $nombre = null, $apellido1 = null, $apellido2 = null) {
184  $this->tipoDocumentacion = $tipoDocumentacion;
185  $this->documentacion = $documentacion;
186  $this->nombreCompleto = $nombreCompleto;
187  $this->nombre = $nombre;
188  $this->apellido1 = $apellido1;
189  $this->apellido2 = $apellido2;
190  }
191 
203  public function setSolicitante($identificadorSolicitante, $nombreSolicitante, $consentimiento, $finalidad, $unidadTramitadora = null, $idExpediente = null) {
204  $this->identificadorSolicitante = $identificadorSolicitante;
205  $this->nombreSolicitante = $nombreSolicitante;
206  $this->consentimiento = $consentimiento;
207  $this->finalidad = $finalidad;
208  $this->unidadTramitadora = $unidadTramitadora;
209  $this->idExpediente = $idExpediente;
210  }
211 
212 
219  public function setEspecifico($oEspecifico) {
220  $this->oEspecifico = $oEspecifico;
221  }
222 
223 
230  public function duplicarCabecera() {
231  $oClon = new objSolicitudTransmision();
232  $oClon->setEmisor($this->nifEmisor, $this->nombreEmisor);
233  $oClon->setProcedimiento($this->codProcedimiento, $this->nombreProcedimiento);
234  $oClon->setFuncionario($this->nombreCompletoFuncionario, $this->nifFuncionario);
235  $oClon->setTitular($this->tipoDocumentacion, $this->documentacion, $this->nombreCompleto, $this->nombre, $this->apellido1, $this->apellido2);
236  $oClon->setSolicitante($this->identificadorSolicitante, $this->nombreSolicitante, $this->consentimiento, $this->finalidad, $this->unidadTramitadora, $this->idExpediente);
237 
238  return $oClon;
239  }
240 
241 
252  public function toSoap($IdPeticion, $CodigoCertificado, $numParcial = null)
253  {
254  $IdSolicitud = $IdPeticion;
255  if (!is_null($numParcial)) {
256  $IdSolicitud = $IdPeticion . '_' . $numParcial;
257  }
258 
259  // $CodigoCertificado debería ser auto-generado
260  // IdentificadorSolicitante = (Sugerido) CODxxxxxx
261  // Consentimiento = Si | Ley
262  // TipoDocumentacion = NIF | CIF | DNI | Pasaporte | NIE
263 
264  // Emisor
265  $EmisorWSRequest = new ArrayObject();
266  $EmisorWSRequest->append(new SoapVar($this->nifEmisor, XSD_STRING, null, null,'NifEmisor', self::$NAMESPACE_PET));
267  $EmisorWSRequest->append(new SoapVar($this->nombreEmisor, XSD_STRING, null, null,'NombreEmisor', self::$NAMESPACE_PET));
268 
269  // Procedimiento
270  $ProcedimientoWSRequest = new ArrayObject();
271  $ProcedimientoWSRequest->append(new SoapVar($this->codProcedimiento, XSD_STRING, null, null,'CodProcedimiento', self::$NAMESPACE_PET));
272  $ProcedimientoWSRequest->append(new SoapVar($this->nombreProcedimiento, XSD_STRING, null, null,'NombreProcedimiento', self::$NAMESPACE_PET));
273 
274  // Funcionario
275  $FuncionarioWSRequest = new ArrayObject();
276  $FuncionarioWSRequest->append(new SoapVar($this->nombreCompletoFuncionario, XSD_STRING, null, null,'NombreCompletoFuncionario', self::$NAMESPACE_PET));
277  $FuncionarioWSRequest->append(new SoapVar($this->nifFuncionario, XSD_STRING, null, null,'NifFuncionario', self::$NAMESPACE_PET));
278 
279  // Solicitante
280  $SolicitanteWSRequest = new ArrayObject();
281  $SolicitanteWSRequest->append(new SoapVar($this->identificadorSolicitante, XSD_STRING, null, null,'IdentificadorSolicitante', self::$NAMESPACE_PET));
282  $SolicitanteWSRequest->append(new SoapVar($this->nombreSolicitante, XSD_STRING, null, null,'NombreSolicitante', self::$NAMESPACE_PET));
283  if (!is_null($this->unidadTramitadora)) {
284  $SolicitanteWSRequest->append(new SoapVar($this->unidadTramitadora, XSD_STRING, null, null,'UnidadTramitadora', self::$NAMESPACE_PET));
285  }
286  $SolicitanteWSRequest->append(new SoapVar($ProcedimientoWSRequest, SOAP_ENC_OBJECT,null,null,'Procedimiento', self::$NAMESPACE_PET));
287  $SolicitanteWSRequest->append(new SoapVar($this->finalidad, XSD_STRING, null, null,'Finalidad', self::$NAMESPACE_PET));
288  $SolicitanteWSRequest->append(new SoapVar($this->consentimiento, XSD_STRING, null, null,'Consentimiento', self::$NAMESPACE_PET));
289  $SolicitanteWSRequest->append(new SoapVar($FuncionarioWSRequest, SOAP_ENC_OBJECT,null,null,'Funcionario', self::$NAMESPACE_PET));
290  if (!is_null($this->idExpediente)) {
291  $SolicitanteWSRequest->append(new SoapVar($this->idExpediente, XSD_STRING, null, null,'IdExpediente', self::$NAMESPACE_PET));
292  }
293 
294  // Titular
295  $TitularWSRequest = new ArrayObject();
296  $TitularWSRequest->append(new SoapVar($this->tipoDocumentacion, XSD_STRING, null, null,'TipoDocumentacion', self::$NAMESPACE_PET));
297  $TitularWSRequest->append(new SoapVar($this->documentacion, XSD_STRING, null, null,'Documentacion', self::$NAMESPACE_PET));
298  if (!is_null($this->nombreCompleto)) {
299  $TitularWSRequest->append(new SoapVar($this->nombreCompleto, XSD_STRING, null, null,'NombreCompleto', self::$NAMESPACE_PET));
300  }
301  if (!is_null($this->nombre)) {
302  $TitularWSRequest->append(new SoapVar($this->nombre, XSD_STRING, null, null,'Nombre', self::$NAMESPACE_PET));
303  }
304  if (!is_null($this->apellido1)) {
305  $TitularWSRequest->append(new SoapVar($this->apellido1, XSD_STRING, null, null,'Apellido1', self::$NAMESPACE_PET));
306  }
307  if (!is_null($this->apellido2)) {
308  $TitularWSRequest->append(new SoapVar($this->apellido2, XSD_STRING, null, null,'Apellido2', self::$NAMESPACE_PET));
309  }
310 
311  // Transmision
312  $TransmisionWSRequest = new ArrayObject();
313  $TransmisionWSRequest->append(new SoapVar($CodigoCertificado, XSD_STRING, null, null,'CodigoCertificado', self::$NAMESPACE_PET));
314  $TransmisionWSRequest->append(new SoapVar($IdSolicitud, XSD_STRING, null, null,'IdSolicitud', self::$NAMESPACE_PET));
315 
316  // DatosGenericos
317  $DatosGenericosWSRequest = new ArrayObject();
318  $DatosGenericosWSRequest->append(new SoapVar($EmisorWSRequest, SOAP_ENC_OBJECT,null,null,'Emisor', self::$NAMESPACE_PET));
319  $DatosGenericosWSRequest->append(new SoapVar($SolicitanteWSRequest, SOAP_ENC_OBJECT,null,null,'Solicitante', self::$NAMESPACE_PET));
320  $DatosGenericosWSRequest->append(new SoapVar($TitularWSRequest, SOAP_ENC_OBJECT,null,null,'Titular', self::$NAMESPACE_PET));
321  $DatosGenericosWSRequest->append(new SoapVar($TransmisionWSRequest, SOAP_ENC_OBJECT,null,null,'Transmision', self::$NAMESPACE_PET));
322 
323  // SolicitudTransmision
324  $SolicitudTransmisionWSRequest = new ArrayObject();
325  $SolicitudTransmisionWSRequest->append(new SoapVar($DatosGenericosWSRequest, SOAP_ENC_OBJECT,null,null,'DatosGenericos', self::$NAMESPACE_PET));
326 
327  // DatosEspecificos
328  if (!is_null($this->oEspecifico)) {
329  $datosEspecificosSoapVar = $this->oEspecifico->toSoap('DatosEspecificos', self::$NAMESPACE_ESP);
330  $SolicitudTransmisionWSRequest->append($datosEspecificosSoapVar);
331  }
332 
333 
334  // Devuelve la solicitud ya generada
335  return new SoapVar($SolicitudTransmisionWSRequest, SOAP_ENC_OBJECT,null,null,'SolicitudTransmision', self::$NAMESPACE_PET);
336  }
337 
338 
346  public function ConsultarMatricula($valor) {
347  $oCon = new Consulta();
348  $oCon->setMatricula($valor);
349 
350  $this->oEspecifico = new DatosEspecificos();
351  $this->oEspecifico->setConsulta($oCon);
352  }
353 
354 
362  public function ConsultarBastidor($valor) {
363  $oCon = new Consulta();
364  $oCon->setBastidor($valor);
365 
366  $this->oEspecifico = new DatosEspecificos();
367  $this->oEspecifico->setConsulta($oCon);
368  }
369 
370 
378  public function ConsultarNIVE($valor) {
379  $oCon = new Consulta();
380  $oCon->setNIVE($valor);
381 
382  $this->oEspecifico = new DatosEspecificos();
383  $this->oEspecifico->setConsulta($oCon);
384  }
385 
386 }
387 
388 
390 {
398  protected function array2ObjectTree($array)
399  {
400  if (is_numeric(key($array)))
401  {
402  foreach ($array as $key => $value)
403  {
404  $array[$key] = $this->array_to_objecttree($value);
405  }
406  return $array;
407  }
408  $Object = new \stdClass;
409  foreach ($array as $key => $value)
410  {
411  if (is_array($value))
412  {
413  $Object->$key = $this->array_to_objecttree($value);
414  }
415  else
416  {
417  $Object->$key = $value;
418  }
419  }
420  return $Object;
421  }//Fin array2ObjectTree
422 
430  protected function objectTree2array($obj)
431  {
432  if (is_array($obj) || is_object($obj))
433  {
434  $result = array();
435  foreach ($obj as $key => $value)
436  {
437  $result[$key] = $this->objectTree2array($value);
438  }
439  return $result;
440  }
441  return $obj;
442  }//Fin objectTree2array
443 
444 
445  private function __anyType_SoapVar($childData, $fieldName, $namespace) {
446  //var_dump($childData);
447  if (is_a($childData, 'DateTime')) {
448  //var_dump($childData);
449  //die('DateTime: ' . $fieldName);
450  return new \SoapVar($childData->format(\DateTime::ATOM), XSD_DATETIME, 'dateTime', 'http://www.w3.org/2001/XMLSchema', $fieldName, $namespace);
451  } elseif (is_int($childData)) {
452  //die('Integer: ' . $fieldName);
453  return new \SoapVar($childData, XSD_INTEGER, null, null, $fieldName, $namespace);
454  }
455 
456  //die('Generic: ' . $fieldName);
457  return new \SoapVar($childData, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema', $fieldName, $namespace);
458  }
459 
460  private function __basic_SoapVar($childData, $basicType, $fieldName, $namespace) {
461  switch ($basicType) {
462  case XSD_DATETIME:
463  return new \SoapVar($childData->format(\DateTime::ATOM), $basicType, null, null, $fieldName, $namespace);
464 
465  default:
466  return new \SoapVar($childData, $basicType, null, null, $fieldName, $namespace);
467  }
468  }
469 
470  public function __doChild($parentTag, $value, $fieldName, $type, $namespace, $minOccurs, $maxOccurs, $isChoice)
471  {
472  //echo("__doChild: $type [$fieldName]<br>");
473  $fieldSet = isset($value);
474  if (!$fieldSet) {
475  if (($minOccurs > 0) && (!$isChoice)) {
476  throw new \Exception("No se ha encontrado el subcampo obligatorio '" . $fieldName . '"');
477  } else {
478  return true;
479  }
480  }
481 
482  $vChildData = $value;
483  if ($maxOccurs == 1) {
484  $vChildData = array( $value );
485  } else {
486  if ($maxOccurs != 'unbounded') {
487  if ($maxOccurs > sizeof($vChildData)) {
488  throw new \Exception("El campo '" . $fieldName . '" no tiene tantas ocurrencias como se esperaban');
489  }
490  } else {
491  // var_dump($vChildData);die;
492  }
493  }
494 
495  //var_dump(array_keys($vChildData));
496  for ($iIter=0; $iIter < sizeof($vChildData); $iIter++) {
497  $childData = $vChildData[$iIter];
498 
499  if ((($minOccurs > 0) && $fieldSet) || $fieldSet) {
500  if (is_int($type) && $type != SOAP_ENC_OBJECT) {
501 
502  $basicType = $type;
503  //echo("Basic: $type | $basicType [$fieldName]<br>");
504  if ($basicType !== XSD_ANYTYPE) {
505  $childSOAP = $this->__basic_SoapVar($childData, $basicType, $fieldName, $namespace);
506  } else {
507  $childSOAP = $this->__anyType_SoapVar($childData, $fieldName, $namespace);
508  }
509  $parentTag->append( $childSOAP );
510  // return true;
511 
512  } else { //if (isset($this->$funcName)) {
513  $childSOAP = $childData->toSoap($fieldName, $namespace);
514  $parentTag->append( $childSOAP );
515  // return true;
516  }
517  } else {
518  return false;
519  }
520 
521  }
522 
523  // TODO: HACER EL MULTIAPARICION!!!
524  /*
525  var_dump($parentTag);
526  var_dump($vData);
527  var_dump($fieldName);
528  var_dump($type);
529  var_dump($namespace);
530  var_dump($minOccurs);
531  var_dump($maxOccurs);
532 
533  die("FAIL!!!");
534  */
535 
536  return true;
537  }
538 
539 
540 
541  static public function is_assoc($array) {
542  foreach(array_keys($array) as $key) {
543  if (!is_int($key)) return true;
544  }
545  return false;
546  }
547 
548  static public function endsWith($haystack, $needle) {
549  // search forward starting from end minus needle length characters
550  return $needle === "" || (($temp = strlen($haystack) - strlen($needle)) >= 0 && strpos($haystack, $needle, $temp) !== false);
551  }
552 }
553 
554 
556  // MODE: choice
557 
562  private $_consulta = null;
563  private $_hasConsulta = false;
564  public function setConsulta($value) {
565  $this->_consulta = $value;
566  $this->_hasConsulta = ($value !== null);
567  }
568  public function hasConsulta() {
569  return $this->_hasConsulta;
570  }
571  public function getConsulta() {
572  return $this->_consulta;
573  }
574 
575 
580  private $_retorno = null;
581  private $_hasRetorno = false;
582  public function setRetorno($value) {
583  $this->_retorno = $value;
584  $this->_hasRetorno = ($value !== null);
585  }
586  public function hasRetorno() {
587  return $this->_hasRetorno;
588  }
589  public function getRetorno() {
590  return $this->_retorno;
591  }
592 
593 
602  static public function fromSoap($vData) {
603  $newItem = new DatosEspecificos();
604  $choiceSetted = false;
605 
606  if (isset($vData['Consulta'])) {
607  if ($choiceSetted) {
608  throw new Exception('No se pueden establecer multiples subetiquetas en una etiqueta de tipo CHOICE');
609  }
610  $choiceSetted = true;
611 
612  $newClass = Consulta::fromSoap($vData['Consulta']);
613  $newItem->setConsulta($newClass);
614  }
615  if (isset($vData['Retorno'])) {
616  if ($choiceSetted) {
617  throw new Exception('No se pueden establecer multiples subetiquetas en una etiqueta de tipo CHOICE');
618  }
619  $choiceSetted = true;
620 
621  $newClass = Retorno::fromSoap($vData['Retorno']);
622  $newItem->setRetorno($newClass);
623  }
624 
625  return $newItem;
626  }
627 
637  public function toSoap($fieldName, $namespace) {
638  $myLevel = new ArrayObject();
639 
640  $this->__doChild($myLevel, $this->_consulta, 'Consulta', SOAP_ENC_OBJECT, $namespace, 1, 1, true);
641  $this->__doChild($myLevel, $this->_retorno, 'Retorno', SOAP_ENC_OBJECT, $namespace, 1, 1, true);
642 
643  //return $myLevel;
644  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
645  }
646 }
647 
648 class Consulta extends SoapObject {
649  // MODE: choice
650 
655  private $_matricula = null;
656  private $_hasMatricula = false;
657  public function setMatricula($value) {
658  $this->_matricula = $value;
659  $this->_hasMatricula = ($value !== null);
660  }
661  public function hasMatricula() {
662  return $this->_hasMatricula;
663  }
664  public function getMatricula() {
665  return $this->_matricula;
666  }
667 
668 
673  private $_bastidor = null;
674  private $_hasBastidor = false;
675  public function setBastidor($value) {
676  $this->_bastidor = $value;
677  $this->_hasBastidor = ($value !== null);
678  }
679  public function hasBastidor() {
680  return $this->_hasBastidor;
681  }
682  public function getBastidor() {
683  return $this->_bastidor;
684  }
685 
686 
691  private $_nIVE = null;
692  private $_hasNIVE = false;
693  public function setNIVE($value) {
694  $this->_nIVE = $value;
695  $this->_hasNIVE = ($value !== null);
696  }
697  public function hasNIVE() {
698  return $this->_hasNIVE;
699  }
700  public function getNIVE() {
701  return $this->_nIVE;
702  }
703 
704 
713  static public function fromSoap($vData) {
714  $newItem = new Consulta();
715  $choiceSetted = false;
716 
717  if (isset($vData['Matricula'])) {
718  if ($choiceSetted) {
719  throw new Exception('No se pueden establecer multiples subetiquetas en una etiqueta de tipo CHOICE');
720  }
721  $choiceSetted = true;
722 
723  $newItem->setMatricula($vData['Matricula']);
724  }
725  if (isset($vData['Bastidor'])) {
726  if ($choiceSetted) {
727  throw new Exception('No se pueden establecer multiples subetiquetas en una etiqueta de tipo CHOICE');
728  }
729  $choiceSetted = true;
730 
731  $newItem->setBastidor($vData['Bastidor']);
732  }
733  if (isset($vData['NIVE'])) {
734  if ($choiceSetted) {
735  throw new Exception('No se pueden establecer multiples subetiquetas en una etiqueta de tipo CHOICE');
736  }
737  $choiceSetted = true;
738 
739  $newItem->setNIVE($vData['NIVE']);
740  }
741 
742  return $newItem;
743  }
744 
754  public function toSoap($fieldName, $namespace) {
755  $myLevel = new ArrayObject();
756 
757  $this->__doChild($myLevel, $this->_matricula, 'Matricula', 101, $namespace, 1, 1, true);
758  $this->__doChild($myLevel, $this->_bastidor, 'Bastidor', 101, $namespace, 1, 1, true);
759  $this->__doChild($myLevel, $this->_nIVE, 'NIVE', 101, $namespace, 1, 1, true);
760 
761  //return $myLevel;
762  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
763  }
764 }
765 
766 class Retorno extends SoapObject {
767 
768 
773  private $_estado = null;
774  private $_hasEstado = false;
775  public function setEstado($value) {
776  $this->_estado = $value;
777  $this->_hasEstado = ($value !== null);
778  }
779  public function hasEstado() {
780  return $this->_hasEstado;
781  }
782  public function getEstado() {
783  return $this->_estado;
784  }
785 
786 
791  private $_consulta = null;
792  private $_hasConsulta = false;
793  public function setConsulta($value) {
794  $this->_consulta = $value;
795  $this->_hasConsulta = ($value !== null);
796  }
797  public function hasConsulta() {
798  return $this->_hasConsulta;
799  }
800  public function getConsulta() {
801  return $this->_consulta;
802  }
803 
804 
809  private $_datosVehiculo = null;
810  private $_hasDatosVehiculo = false;
811  public function setDatosVehiculo($value) {
812  $this->_datosVehiculo = $value;
813  $this->_hasDatosVehiculo = ($value !== null);
814  }
815  public function hasDatosVehiculo() {
816  return $this->_hasDatosVehiculo;
817  }
818  public function getDatosVehiculo() {
819  return $this->_datosVehiculo;
820  }
821 
822 
831  static public function fromSoap($vData) {
832  $newItem = new Retorno();
833  if (!isset($vData['Estado'])) {
834  throw new Exception('El parametro Estado es obligatorio');
835  }
836  if (isset($vData['Estado'])) {
837 
838  $newClass = Estado::fromSoap($vData['Estado']);
839  $newItem->setEstado($newClass);
840  }
841  if (!isset($vData['Consulta'])) {
842  throw new Exception('El parametro Consulta es obligatorio');
843  }
844  if (isset($vData['Consulta'])) {
845 
846  $newClass = Consulta::fromSoap($vData['Consulta']);
847  $newItem->setConsulta($newClass);
848  }
849  if (isset($vData['DatosVehiculo'])) {
850 
851  $newClass = DatosVehiculo::fromSoap($vData['DatosVehiculo']);
852  $newItem->setDatosVehiculo($newClass);
853  }
854 
855  return $newItem;
856  }
857 
867  public function toSoap($fieldName, $namespace) {
868  $myLevel = new ArrayObject();
869 
870  $this->__doChild($myLevel, $this->_estado, 'Estado', SOAP_ENC_OBJECT, $namespace, 1, 1, false);
871  $this->__doChild($myLevel, $this->_consulta, 'Consulta', SOAP_ENC_OBJECT, $namespace, 1, 1, false);
872  $this->__doChild($myLevel, $this->_datosVehiculo, 'DatosVehiculo', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
873 
874  //return $myLevel;
875  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
876  }
877 }
878 
879 class Estado extends SoapObject {
880 
881 
886  private $_codigoEstado = null;
887  private $_hasCodigoEstado = false;
888  public function setCodigoEstado($value) {
889  $this->_codigoEstado = $value;
890  $this->_hasCodigoEstado = ($value !== null);
891  }
892  public function hasCodigoEstado() {
893  return $this->_hasCodigoEstado;
894  }
895  public function getCodigoEstado() {
896  return $this->_codigoEstado;
897  }
898 
899 
904  private $_codigoEstadoSecundario = null;
905  private $_hasCodigoEstadoSecundario = false;
906  public function setCodigoEstadoSecundario($value) {
907  $this->_codigoEstadoSecundario = $value;
908  $this->_hasCodigoEstadoSecundario = ($value !== null);
909  }
910  public function hasCodigoEstadoSecundario() {
911  return $this->_hasCodigoEstadoSecundario;
912  }
913  public function getCodigoEstadoSecundario() {
914  return $this->_codigoEstadoSecundario;
915  }
916 
917 
922  private $_literal = null;
923  private $_hasLiteral = false;
924  public function setLiteral($value) {
925  $this->_literal = $value;
926  $this->_hasLiteral = ($value !== null);
927  }
928  public function hasLiteral() {
929  return $this->_hasLiteral;
930  }
931  public function getLiteral() {
932  return $this->_literal;
933  }
934 
935 
944  static public function fromSoap($vData) {
945  $newItem = new Estado();
946  if (!isset($vData['CodigoEstado'])) {
947  throw new Exception('El parametro CodigoEstado es obligatorio');
948  }
949  if (isset($vData['CodigoEstado'])) {
950 
951  $newItem->setCodigoEstado($vData['CodigoEstado']);
952  }
953  if (isset($vData['CodigoEstadoSecundario'])) {
954 
955  $newItem->setCodigoEstadoSecundario($vData['CodigoEstadoSecundario']);
956  }
957  if (!isset($vData['Literal'])) {
958  throw new Exception('El parametro Literal es obligatorio');
959  }
960  if (isset($vData['Literal'])) {
961 
962  $newItem->setLiteral($vData['Literal']);
963  }
964 
965  return $newItem;
966  }
967 
977  public function toSoap($fieldName, $namespace) {
978  $myLevel = new ArrayObject();
979 
980  $this->__doChild($myLevel, $this->_codigoEstado, 'CodigoEstado', 101, $namespace, 1, 1, false);
981  $this->__doChild($myLevel, $this->_codigoEstadoSecundario, 'CodigoEstadoSecundario', 101, $namespace, 0, 1, false);
982  $this->__doChild($myLevel, $this->_literal, 'Literal', 101, $namespace, 1, 1, false);
983 
984  //return $myLevel;
985  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
986  }
987 }
988 
989 class DatosVehiculo extends SoapObject {
990 
991 
996  private $_datosGenerales = null;
997  private $_hasDatosGenerales = false;
998  public function setDatosGenerales($value) {
999  $this->_datosGenerales = $value;
1000  $this->_hasDatosGenerales = ($value !== null);
1001  }
1002  public function hasDatosGenerales() {
1003  return $this->_hasDatosGenerales;
1004  }
1005  public function getDatosGenerales() {
1006  return $this->_datosGenerales;
1007  }
1008 
1009 
1014  private $_datosTecnicos = null;
1015  private $_hasDatosTecnicos = false;
1016  public function setDatosTecnicos($value) {
1017  $this->_datosTecnicos = $value;
1018  $this->_hasDatosTecnicos = ($value !== null);
1019  }
1020  public function hasDatosTecnicos() {
1021  return $this->_hasDatosTecnicos;
1022  }
1023  public function getDatosTecnicos() {
1024  return $this->_datosTecnicos;
1025  }
1026 
1027 
1032  private $_datosTramites = null;
1033  private $_hasDatosTramites = false;
1034  public function setDatosTramites($value) {
1035  $this->_datosTramites = $value;
1036  $this->_hasDatosTramites = ($value !== null);
1037  }
1038  public function hasDatosTramites() {
1039  return $this->_hasDatosTramites;
1040  }
1041  public function getDatosTramites() {
1042  return $this->_datosTramites;
1043  }
1044 
1045 
1050  private $_datosAdministrativos = null;
1051  private $_hasDatosAdministrativos = false;
1052  public function setDatosAdministrativos($value) {
1053  $this->_datosAdministrativos = $value;
1054  $this->_hasDatosAdministrativos = ($value !== null);
1055  }
1056  public function hasDatosAdministrativos() {
1057  return $this->_hasDatosAdministrativos;
1058  }
1059  public function getDatosAdministrativos() {
1060  return $this->_datosAdministrativos;
1061  }
1062 
1063 
1072  static public function fromSoap($vData) {
1073  $newItem = new DatosVehiculo();
1074  if (isset($vData['DatosGenerales'])) {
1075 
1076  $newClass = DatosGenerales::fromSoap($vData['DatosGenerales']);
1077  $newItem->setDatosGenerales($newClass);
1078  }
1079  if (isset($vData['DatosTecnicos'])) {
1080 
1081  $newClass = DatosTecnicos::fromSoap($vData['DatosTecnicos']);
1082  $newItem->setDatosTecnicos($newClass);
1083  }
1084  if (isset($vData['DatosTramites'])) {
1085 
1086  $newClass = DatosTramites::fromSoap($vData['DatosTramites']);
1087  $newItem->setDatosTramites($newClass);
1088  }
1089  if (isset($vData['DatosAdministrativos'])) {
1090 
1091  $newClass = DatosAdministrativos::fromSoap($vData['DatosAdministrativos']);
1092  $newItem->setDatosAdministrativos($newClass);
1093  }
1094 
1095  return $newItem;
1096  }
1097 
1107  public function toSoap($fieldName, $namespace) {
1108  $myLevel = new ArrayObject();
1109 
1110  $this->__doChild($myLevel, $this->_datosGenerales, 'DatosGenerales', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
1111  $this->__doChild($myLevel, $this->_datosTecnicos, 'DatosTecnicos', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
1112  $this->__doChild($myLevel, $this->_datosTramites, 'DatosTramites', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
1113  $this->__doChild($myLevel, $this->_datosAdministrativos, 'DatosAdministrativos', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
1114 
1115  //return $myLevel;
1116  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
1117  }
1118 }
1119 
1121 
1122 
1127  private $_descripcionVehiculo = null;
1128  private $_hasDescripcionVehiculo = false;
1129  public function setDescripcionVehiculo($value) {
1130  $this->_descripcionVehiculo = $value;
1131  $this->_hasDescripcionVehiculo = ($value !== null);
1132  }
1133  public function hasDescripcionVehiculo() {
1134  return $this->_hasDescripcionVehiculo;
1135  }
1136  public function getDescripcionVehiculo() {
1137  return $this->_descripcionVehiculo;
1138  }
1139 
1140 
1145  private $_domicilioVehiculoDGT = null;
1146  private $_hasDomicilioVehiculoDGT = false;
1147  public function setDomicilioVehiculoDGT($value) {
1148  $this->_domicilioVehiculoDGT = $value;
1149  $this->_hasDomicilioVehiculoDGT = ($value !== null);
1150  }
1151  public function hasDomicilioVehiculoDGT() {
1152  return $this->_hasDomicilioVehiculoDGT;
1153  }
1154  public function getDomicilioVehiculoDGT() {
1155  return $this->_domicilioVehiculoDGT;
1156  }
1157 
1158 
1163  private $_domicilioVehiculoINE = null;
1164  private $_hasDomicilioVehiculoINE = false;
1165  public function setDomicilioVehiculoINE($value) {
1166  $this->_domicilioVehiculoINE = $value;
1167  $this->_hasDomicilioVehiculoINE = ($value !== null);
1168  }
1169  public function hasDomicilioVehiculoINE() {
1170  return $this->_hasDomicilioVehiculoINE;
1171  }
1172  public function getDomicilioVehiculoINE() {
1173  return $this->_domicilioVehiculoINE;
1174  }
1175 
1176 
1181  private $_indicadores = null;
1182  private $_hasIndicadores = false;
1183  public function setIndicadores($value) {
1184  $this->_indicadores = $value;
1185  $this->_hasIndicadores = ($value !== null);
1186  }
1187  public function hasIndicadores() {
1188  return $this->_hasIndicadores;
1189  }
1190  public function getIndicadores() {
1191  return $this->_indicadores;
1192  }
1193 
1194 
1199  private $_matriculacion = null;
1200  private $_hasMatriculacion = false;
1201  public function setMatriculacion($value) {
1202  $this->_matriculacion = $value;
1203  $this->_hasMatriculacion = ($value !== null);
1204  }
1205  public function hasMatriculacion() {
1206  return $this->_hasMatriculacion;
1207  }
1208  public function getMatriculacion() {
1209  return $this->_matriculacion;
1210  }
1211 
1212 
1217  private $_titular = null;
1218  private $_hasTitular = false;
1219  public function setTitular($value) {
1220  $this->_titular = $value;
1221  $this->_hasTitular = ($value !== null);
1222  }
1223  public function hasTitular() {
1224  return $this->_hasTitular;
1225  }
1226  public function getTitular() {
1227  return $this->_titular;
1228  }
1229 
1230 
1239  static public function fromSoap($vData) {
1240  $newItem = new DatosGenerales();
1241  if (isset($vData['DescripcionVehiculo'])) {
1242 
1243  $newClass = DescripcionVehiculo::fromSoap($vData['DescripcionVehiculo']);
1244  $newItem->setDescripcionVehiculo($newClass);
1245  }
1246  if (isset($vData['DomicilioVehiculoDGT'])) {
1247 
1248  $newClass = DomicilioVehiculoDGT::fromSoap($vData['DomicilioVehiculoDGT']);
1249  $newItem->setDomicilioVehiculoDGT($newClass);
1250  }
1251  if (isset($vData['DomicilioVehiculoINE'])) {
1252 
1253  $newClass = DomicilioVehiculoINE::fromSoap($vData['DomicilioVehiculoINE']);
1254  $newItem->setDomicilioVehiculoINE($newClass);
1255  }
1256  if (isset($vData['Indicadores'])) {
1257 
1258  $newClass = Indicadores::fromSoap($vData['Indicadores']);
1259  $newItem->setIndicadores($newClass);
1260  }
1261  if (isset($vData['Matriculacion'])) {
1262 
1263  $newClass = Matriculacion::fromSoap($vData['Matriculacion']);
1264  $newItem->setMatriculacion($newClass);
1265  }
1266  if (isset($vData['Titular'])) {
1267 
1268  $newClass = Titular::fromSoap($vData['Titular']);
1269  $newItem->setTitular($newClass);
1270  }
1271 
1272  return $newItem;
1273  }
1274 
1284  public function toSoap($fieldName, $namespace) {
1285  $myLevel = new ArrayObject();
1286 
1287  $this->__doChild($myLevel, $this->_descripcionVehiculo, 'DescripcionVehiculo', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
1288  $this->__doChild($myLevel, $this->_domicilioVehiculoDGT, 'DomicilioVehiculoDGT', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
1289  $this->__doChild($myLevel, $this->_domicilioVehiculoINE, 'DomicilioVehiculoINE', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
1290  $this->__doChild($myLevel, $this->_indicadores, 'Indicadores', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
1291  $this->__doChild($myLevel, $this->_matriculacion, 'Matriculacion', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
1292  $this->__doChild($myLevel, $this->_titular, 'Titular', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
1293 
1294  //return $myLevel;
1295  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
1296  }
1297 }
1298 
1300 
1301 
1306  private $_bastidor = null;
1307  private $_hasBastidor = false;
1308  public function setBastidor($value) {
1309  $this->_bastidor = $value;
1310  $this->_hasBastidor = ($value !== null);
1311  }
1312  public function hasBastidor() {
1313  return $this->_hasBastidor;
1314  }
1315  public function getBastidor() {
1316  return $this->_bastidor;
1317  }
1318 
1319 
1324  private $_nIVE = null;
1325  private $_hasNIVE = false;
1326  public function setNIVE($value) {
1327  $this->_nIVE = $value;
1328  $this->_hasNIVE = ($value !== null);
1329  }
1330  public function hasNIVE() {
1331  return $this->_hasNIVE;
1332  }
1333  public function getNIVE() {
1334  return $this->_nIVE;
1335  }
1336 
1337 
1342  private $_marca = null;
1343  private $_hasMarca = false;
1344  public function setMarca($value) {
1345  $this->_marca = $value;
1346  $this->_hasMarca = ($value !== null);
1347  }
1348  public function hasMarca() {
1349  return $this->_hasMarca;
1350  }
1351  public function getMarca() {
1352  return $this->_marca;
1353  }
1354 
1355 
1360  private $_modelo = null;
1361  private $_hasModelo = false;
1362  public function setModelo($value) {
1363  $this->_modelo = $value;
1364  $this->_hasModelo = ($value !== null);
1365  }
1366  public function hasModelo() {
1367  return $this->_hasModelo;
1368  }
1369  public function getModelo() {
1370  return $this->_modelo;
1371  }
1372 
1373 
1382  static public function fromSoap($vData) {
1383  $newItem = new DescripcionVehiculo();
1384  if (isset($vData['Bastidor'])) {
1385 
1386  $newItem->setBastidor($vData['Bastidor']);
1387  }
1388  if (isset($vData['NIVE'])) {
1389 
1390  $newItem->setNIVE($vData['NIVE']);
1391  }
1392  if (isset($vData['Marca'])) {
1393 
1394  $newClass = Marca::fromSoap($vData['Marca']);
1395  $newItem->setMarca($newClass);
1396  }
1397  if (isset($vData['Modelo'])) {
1398 
1399  $newItem->setModelo($vData['Modelo']);
1400  }
1401 
1402  return $newItem;
1403  }
1404 
1414  public function toSoap($fieldName, $namespace) {
1415  $myLevel = new ArrayObject();
1416 
1417  $this->__doChild($myLevel, $this->_bastidor, 'Bastidor', 101, $namespace, 0, 1, false);
1418  $this->__doChild($myLevel, $this->_nIVE, 'NIVE', 101, $namespace, 0, 1, false);
1419  $this->__doChild($myLevel, $this->_marca, 'Marca', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
1420  $this->__doChild($myLevel, $this->_modelo, 'Modelo', 101, $namespace, 0, 1, false);
1421 
1422  //return $myLevel;
1423  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
1424  }
1425 }
1426 
1427 class Marca extends SoapObject {
1428 
1429 
1434  private $_codigo = null;
1435  private $_hasCodigo = false;
1436  public function setCodigo($value) {
1437  $this->_codigo = $value;
1438  $this->_hasCodigo = ($value !== null);
1439  }
1440  public function hasCodigo() {
1441  return $this->_hasCodigo;
1442  }
1443  public function getCodigo() {
1444  return $this->_codigo;
1445  }
1446 
1447 
1452  private $_descripcion = null;
1453  private $_hasDescripcion = false;
1454  public function setDescripcion($value) {
1455  $this->_descripcion = $value;
1456  $this->_hasDescripcion = ($value !== null);
1457  }
1458  public function hasDescripcion() {
1459  return $this->_hasDescripcion;
1460  }
1461  public function getDescripcion() {
1462  return $this->_descripcion;
1463  }
1464 
1465 
1474  static public function fromSoap($vData) {
1475  $newItem = new Marca();
1476  if (isset($vData['Codigo'])) {
1477 
1478  $newItem->setCodigo($vData['Codigo']);
1479  }
1480  if (isset($vData['Descripcion'])) {
1481 
1482  $newItem->setDescripcion($vData['Descripcion']);
1483  }
1484 
1485  return $newItem;
1486  }
1487 
1497  public function toSoap($fieldName, $namespace) {
1498  $myLevel = new ArrayObject();
1499 
1500  $this->__doChild($myLevel, $this->_codigo, 'Codigo', 101, $namespace, 0, 1, false);
1501  $this->__doChild($myLevel, $this->_descripcion, 'Descripcion', 101, $namespace, 0, 1, false);
1502 
1503  //return $myLevel;
1504  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
1505  }
1506 }
1507 
1509 
1510 
1515  private $_municipio = null;
1516  private $_hasMunicipio = false;
1517  public function setMunicipio($value) {
1518  $this->_municipio = $value;
1519  $this->_hasMunicipio = ($value !== null);
1520  }
1521  public function hasMunicipio() {
1522  return $this->_hasMunicipio;
1523  }
1524  public function getMunicipio() {
1525  return $this->_municipio;
1526  }
1527 
1528 
1537  static public function fromSoap($vData) {
1538  $newItem = new DomicilioVehiculoDGT();
1539  if (isset($vData['Municipio'])) {
1540 
1541  $newItem->setMunicipio($vData['Municipio']);
1542  }
1543 
1544  return $newItem;
1545  }
1546 
1556  public function toSoap($fieldName, $namespace) {
1557  $myLevel = new ArrayObject();
1558 
1559  $this->__doChild($myLevel, $this->_municipio, 'Municipio', 101, $namespace, 0, 1, false);
1560 
1561  //return $myLevel;
1562  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
1563  }
1564 }
1565 
1567 
1568 
1573  private $_municipio = null;
1574  private $_hasMunicipio = false;
1575  public function setMunicipio($value) {
1576  $this->_municipio = $value;
1577  $this->_hasMunicipio = ($value !== null);
1578  }
1579  public function hasMunicipio() {
1580  return $this->_hasMunicipio;
1581  }
1582  public function getMunicipio() {
1583  return $this->_municipio;
1584  }
1585 
1586 
1595  static public function fromSoap($vData) {
1596  $newItem = new DomicilioVehiculoINE();
1597  if (isset($vData['Municipio'])) {
1598 
1599  $newItem->setMunicipio($vData['Municipio']);
1600  }
1601 
1602  return $newItem;
1603  }
1604 
1614  public function toSoap($fieldName, $namespace) {
1615  $myLevel = new ArrayObject();
1616 
1617  $this->__doChild($myLevel, $this->_municipio, 'Municipio', 101, $namespace, 0, 1, false);
1618 
1619  //return $myLevel;
1620  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
1621  }
1622 }
1623 
1624 class DomicilioDGT extends SoapObject {
1625 
1626 
1631  private $_nombreVia = null;
1632  private $_hasNombreVia = false;
1633  public function setNombreVia($value) {
1634  $this->_nombreVia = $value;
1635  $this->_hasNombreVia = ($value !== null);
1636  }
1637  public function hasNombreVia() {
1638  return $this->_hasNombreVia;
1639  }
1640  public function getNombreVia() {
1641  return $this->_nombreVia;
1642  }
1643 
1644 
1649  private $_provincia = null;
1650  private $_hasProvincia = false;
1651  public function setProvincia($value) {
1652  $this->_provincia = $value;
1653  $this->_hasProvincia = ($value !== null);
1654  }
1655  public function hasProvincia() {
1656  return $this->_hasProvincia;
1657  }
1658  public function getProvincia() {
1659  return $this->_provincia;
1660  }
1661 
1662 
1667  private $_municipio = null;
1668  private $_hasMunicipio = false;
1669  public function setMunicipio($value) {
1670  $this->_municipio = $value;
1671  $this->_hasMunicipio = ($value !== null);
1672  }
1673  public function hasMunicipio() {
1674  return $this->_hasMunicipio;
1675  }
1676  public function getMunicipio() {
1677  return $this->_municipio;
1678  }
1679 
1680 
1685  private $_localidad = null;
1686  private $_hasLocalidad = false;
1687  public function setLocalidad($value) {
1688  $this->_localidad = $value;
1689  $this->_hasLocalidad = ($value !== null);
1690  }
1691  public function hasLocalidad() {
1692  return $this->_hasLocalidad;
1693  }
1694  public function getLocalidad() {
1695  return $this->_localidad;
1696  }
1697 
1698 
1703  private $_codigoPostal = null;
1704  private $_hasCodigoPostal = false;
1705  public function setCodigoPostal($value) {
1706  $this->_codigoPostal = $value;
1707  $this->_hasCodigoPostal = ($value !== null);
1708  }
1709  public function hasCodigoPostal() {
1710  return $this->_hasCodigoPostal;
1711  }
1712  public function getCodigoPostal() {
1713  return $this->_codigoPostal;
1714  }
1715 
1716 
1725  static public function fromSoap($vData) {
1726  $newItem = new DomicilioDGT();
1727  if (isset($vData['NombreVia'])) {
1728 
1729  $newItem->setNombreVia($vData['NombreVia']);
1730  }
1731  if (isset($vData['Provincia'])) {
1732 
1733  $newClass = Provincia::fromSoap($vData['Provincia']);
1734  $newItem->setProvincia($newClass);
1735  }
1736  if (isset($vData['Municipio'])) {
1737 
1738  $newItem->setMunicipio($vData['Municipio']);
1739  }
1740  if (isset($vData['Localidad'])) {
1741 
1742  $newItem->setLocalidad($vData['Localidad']);
1743  }
1744  if (isset($vData['CodigoPostal'])) {
1745 
1746  $newItem->setCodigoPostal($vData['CodigoPostal']);
1747  }
1748 
1749  return $newItem;
1750  }
1751 
1761  public function toSoap($fieldName, $namespace) {
1762  $myLevel = new ArrayObject();
1763 
1764  $this->__doChild($myLevel, $this->_nombreVia, 'NombreVia', 101, $namespace, 0, 1, false);
1765  $this->__doChild($myLevel, $this->_provincia, 'Provincia', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
1766  $this->__doChild($myLevel, $this->_municipio, 'Municipio', 101, $namespace, 0, 1, false);
1767  $this->__doChild($myLevel, $this->_localidad, 'Localidad', 101, $namespace, 0, 1, false);
1768  $this->__doChild($myLevel, $this->_codigoPostal, 'CodigoPostal', 135, $namespace, 0, 1, false);
1769 
1770  //return $myLevel;
1771  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
1772  }
1773 }
1774 
1775 class DomicilioINE extends SoapObject {
1776 
1777 
1782  private $_tipoVia = null;
1783  private $_hasTipoVia = false;
1784  public function setTipoVia($value) {
1785  $this->_tipoVia = $value;
1786  $this->_hasTipoVia = ($value !== null);
1787  }
1788  public function hasTipoVia() {
1789  return $this->_hasTipoVia;
1790  }
1791  public function getTipoVia() {
1792  return $this->_tipoVia;
1793  }
1794 
1795 
1800  private $_nombreVia = null;
1801  private $_hasNombreVia = false;
1802  public function setNombreVia($value) {
1803  $this->_nombreVia = $value;
1804  $this->_hasNombreVia = ($value !== null);
1805  }
1806  public function hasNombreVia() {
1807  return $this->_hasNombreVia;
1808  }
1809  public function getNombreVia() {
1810  return $this->_nombreVia;
1811  }
1812 
1813 
1818  private $_numeroVia = null;
1819  private $_hasNumeroVia = false;
1820  public function setNumeroVia($value) {
1821  $this->_numeroVia = $value;
1822  $this->_hasNumeroVia = ($value !== null);
1823  }
1824  public function hasNumeroVia() {
1825  return $this->_hasNumeroVia;
1826  }
1827  public function getNumeroVia() {
1828  return $this->_numeroVia;
1829  }
1830 
1831 
1836  private $_portal = null;
1837  private $_hasPortal = false;
1838  public function setPortal($value) {
1839  $this->_portal = $value;
1840  $this->_hasPortal = ($value !== null);
1841  }
1842  public function hasPortal() {
1843  return $this->_hasPortal;
1844  }
1845  public function getPortal() {
1846  return $this->_portal;
1847  }
1848 
1849 
1854  private $_bloque = null;
1855  private $_hasBloque = false;
1856  public function setBloque($value) {
1857  $this->_bloque = $value;
1858  $this->_hasBloque = ($value !== null);
1859  }
1860  public function hasBloque() {
1861  return $this->_hasBloque;
1862  }
1863  public function getBloque() {
1864  return $this->_bloque;
1865  }
1866 
1867 
1872  private $_escalera = null;
1873  private $_hasEscalera = false;
1874  public function setEscalera($value) {
1875  $this->_escalera = $value;
1876  $this->_hasEscalera = ($value !== null);
1877  }
1878  public function hasEscalera() {
1879  return $this->_hasEscalera;
1880  }
1881  public function getEscalera() {
1882  return $this->_escalera;
1883  }
1884 
1885 
1890  private $_planta = null;
1891  private $_hasPlanta = false;
1892  public function setPlanta($value) {
1893  $this->_planta = $value;
1894  $this->_hasPlanta = ($value !== null);
1895  }
1896  public function hasPlanta() {
1897  return $this->_hasPlanta;
1898  }
1899  public function getPlanta() {
1900  return $this->_planta;
1901  }
1902 
1903 
1908  private $_puerta = null;
1909  private $_hasPuerta = false;
1910  public function setPuerta($value) {
1911  $this->_puerta = $value;
1912  $this->_hasPuerta = ($value !== null);
1913  }
1914  public function hasPuerta() {
1915  return $this->_hasPuerta;
1916  }
1917  public function getPuerta() {
1918  return $this->_puerta;
1919  }
1920 
1921 
1926  private $_kilometro = null;
1927  private $_hasKilometro = false;
1928  public function setKilometro($value) {
1929  $this->_kilometro = $value;
1930  $this->_hasKilometro = ($value !== null);
1931  }
1932  public function hasKilometro() {
1933  return $this->_hasKilometro;
1934  }
1935  public function getKilometro() {
1936  return $this->_kilometro;
1937  }
1938 
1939 
1944  private $_hectometro = null;
1945  private $_hasHectometro = false;
1946  public function setHectometro($value) {
1947  $this->_hectometro = $value;
1948  $this->_hasHectometro = ($value !== null);
1949  }
1950  public function hasHectometro() {
1951  return $this->_hasHectometro;
1952  }
1953  public function getHectometro() {
1954  return $this->_hectometro;
1955  }
1956 
1957 
1962  private $_provincia = null;
1963  private $_hasProvincia = false;
1964  public function setProvincia($value) {
1965  $this->_provincia = $value;
1966  $this->_hasProvincia = ($value !== null);
1967  }
1968  public function hasProvincia() {
1969  return $this->_hasProvincia;
1970  }
1971  public function getProvincia() {
1972  return $this->_provincia;
1973  }
1974 
1975 
1980  private $_municipio = null;
1981  private $_hasMunicipio = false;
1982  public function setMunicipio($value) {
1983  $this->_municipio = $value;
1984  $this->_hasMunicipio = ($value !== null);
1985  }
1986  public function hasMunicipio() {
1987  return $this->_hasMunicipio;
1988  }
1989  public function getMunicipio() {
1990  return $this->_municipio;
1991  }
1992 
1993 
1998  private $_localidad = null;
1999  private $_hasLocalidad = false;
2000  public function setLocalidad($value) {
2001  $this->_localidad = $value;
2002  $this->_hasLocalidad = ($value !== null);
2003  }
2004  public function hasLocalidad() {
2005  return $this->_hasLocalidad;
2006  }
2007  public function getLocalidad() {
2008  return $this->_localidad;
2009  }
2010 
2011 
2016  private $_codigoPostal = null;
2017  private $_hasCodigoPostal = false;
2018  public function setCodigoPostal($value) {
2019  $this->_codigoPostal = $value;
2020  $this->_hasCodigoPostal = ($value !== null);
2021  }
2022  public function hasCodigoPostal() {
2023  return $this->_hasCodigoPostal;
2024  }
2025  public function getCodigoPostal() {
2026  return $this->_codigoPostal;
2027  }
2028 
2029 
2038  static public function fromSoap($vData) {
2039  $newItem = new DomicilioINE();
2040  if (isset($vData['TipoVia'])) {
2041 
2042  $newItem->setTipoVia($vData['TipoVia']);
2043  }
2044  if (isset($vData['NombreVia'])) {
2045 
2046  $newItem->setNombreVia($vData['NombreVia']);
2047  }
2048  if (isset($vData['NumeroVia'])) {
2049 
2050  $newItem->setNumeroVia($vData['NumeroVia']);
2051  }
2052  if (isset($vData['Portal'])) {
2053 
2054  $newItem->setPortal($vData['Portal']);
2055  }
2056  if (isset($vData['Bloque'])) {
2057 
2058  $newItem->setBloque($vData['Bloque']);
2059  }
2060  if (isset($vData['Escalera'])) {
2061 
2062  $newItem->setEscalera($vData['Escalera']);
2063  }
2064  if (isset($vData['Planta'])) {
2065 
2066  $newItem->setPlanta($vData['Planta']);
2067  }
2068  if (isset($vData['Puerta'])) {
2069 
2070  $newItem->setPuerta($vData['Puerta']);
2071  }
2072  if (isset($vData['Kilometro'])) {
2073 
2074  $newItem->setKilometro($vData['Kilometro']);
2075  }
2076  if (isset($vData['Hectometro'])) {
2077 
2078  $newItem->setHectometro($vData['Hectometro']);
2079  }
2080  if (isset($vData['Provincia'])) {
2081 
2082  $newClass = Provincia::fromSoap($vData['Provincia']);
2083  $newItem->setProvincia($newClass);
2084  }
2085  if (isset($vData['Municipio'])) {
2086 
2087  $newItem->setMunicipio($vData['Municipio']);
2088  }
2089  if (isset($vData['Localidad'])) {
2090 
2091  $newItem->setLocalidad($vData['Localidad']);
2092  }
2093  if (isset($vData['CodigoPostal'])) {
2094 
2095  $newItem->setCodigoPostal($vData['CodigoPostal']);
2096  }
2097 
2098  return $newItem;
2099  }
2100 
2110  public function toSoap($fieldName, $namespace) {
2111  $myLevel = new ArrayObject();
2112 
2113  $this->__doChild($myLevel, $this->_tipoVia, 'TipoVia', 101, $namespace, 0, 1, false);
2114  $this->__doChild($myLevel, $this->_nombreVia, 'NombreVia', 101, $namespace, 0, 1, false);
2115  $this->__doChild($myLevel, $this->_numeroVia, 'NumeroVia', 101, $namespace, 0, 1, false);
2116  $this->__doChild($myLevel, $this->_portal, 'Portal', 101, $namespace, 0, 1, false);
2117  $this->__doChild($myLevel, $this->_bloque, 'Bloque', 101, $namespace, 0, 1, false);
2118  $this->__doChild($myLevel, $this->_escalera, 'Escalera', 101, $namespace, 0, 1, false);
2119  $this->__doChild($myLevel, $this->_planta, 'Planta', 101, $namespace, 0, 1, false);
2120  $this->__doChild($myLevel, $this->_puerta, 'Puerta', 101, $namespace, 0, 1, false);
2121  $this->__doChild($myLevel, $this->_kilometro, 'Kilometro', 101, $namespace, 0, 1, false);
2122  $this->__doChild($myLevel, $this->_hectometro, 'Hectometro', 101, $namespace, 0, 1, false);
2123  $this->__doChild($myLevel, $this->_provincia, 'Provincia', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
2124  $this->__doChild($myLevel, $this->_municipio, 'Municipio', 101, $namespace, 0, 1, false);
2125  $this->__doChild($myLevel, $this->_localidad, 'Localidad', 101, $namespace, 0, 1, false);
2126  $this->__doChild($myLevel, $this->_codigoPostal, 'CodigoPostal', 135, $namespace, 0, 1, false);
2127 
2128  //return $myLevel;
2129  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2130  }
2131 }
2132 
2133 class Indicadores extends SoapObject {
2134 
2135 
2140  private $_bajaTemporal = null;
2141  private $_hasBajaTemporal = false;
2142  public function setBajaTemporal($value) {
2143  $this->_bajaTemporal = $value;
2144  $this->_hasBajaTemporal = ($value !== null);
2145  }
2146  public function hasBajaTemporal() {
2147  return $this->_hasBajaTemporal;
2148  }
2149  public function getBajaTemporal() {
2150  return $this->_bajaTemporal;
2151  }
2152 
2153 
2158  private $_bajaDefinitiva = null;
2159  private $_hasBajaDefinitiva = false;
2160  public function setBajaDefinitiva($value) {
2161  $this->_bajaDefinitiva = $value;
2162  $this->_hasBajaDefinitiva = ($value !== null);
2163  }
2164  public function hasBajaDefinitiva() {
2165  return $this->_hasBajaDefinitiva;
2166  }
2167  public function getBajaDefinitiva() {
2168  return $this->_bajaDefinitiva;
2169  }
2170 
2171 
2180  static public function fromSoap($vData) {
2181  $newItem = new Indicadores();
2182  if (isset($vData['BajaTemporal'])) {
2183 
2184  $newItem->setBajaTemporal($vData['BajaTemporal']);
2185  }
2186  if (isset($vData['BajaDefinitiva'])) {
2187 
2188  $newItem->setBajaDefinitiva($vData['BajaDefinitiva']);
2189  }
2190 
2191  return $newItem;
2192  }
2193 
2203  public function toSoap($fieldName, $namespace) {
2204  $myLevel = new ArrayObject();
2205 
2206  $this->__doChild($myLevel, $this->_bajaTemporal, 'BajaTemporal', 101, $namespace, 0, 1, false);
2207  $this->__doChild($myLevel, $this->_bajaDefinitiva, 'BajaDefinitiva', 101, $namespace, 0, 1, false);
2208 
2209  //return $myLevel;
2210  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2211  }
2212 }
2213 
2214 class Matriculacion extends SoapObject {
2215 
2216 
2221  private $_fechaMatriculacion = null;
2222  private $_hasFechaMatriculacion = false;
2223  public function setFechaMatriculacion($value) {
2224  $this->_fechaMatriculacion = $value;
2225  $this->_hasFechaMatriculacion = ($value !== null);
2226  }
2227  public function hasFechaMatriculacion() {
2228  return $this->_hasFechaMatriculacion;
2229  }
2230  public function getFechaMatriculacion() {
2231  return $this->_fechaMatriculacion;
2232  }
2233 
2234 
2239  private $_matricula = null;
2240  private $_hasMatricula = false;
2241  public function setMatricula($value) {
2242  $this->_matricula = $value;
2243  $this->_hasMatricula = ($value !== null);
2244  }
2245  public function hasMatricula() {
2246  return $this->_hasMatricula;
2247  }
2248  public function getMatricula() {
2249  return $this->_matricula;
2250  }
2251 
2252 
2261  static public function fromSoap($vData) {
2262  $newItem = new Matriculacion();
2263  if (isset($vData['FechaMatriculacion'])) {
2264 
2265  $newItem->setFechaMatriculacion($vData['FechaMatriculacion']);
2266  }
2267  if (isset($vData['Matricula'])) {
2268 
2269  $newItem->setMatricula($vData['Matricula']);
2270  }
2271 
2272  return $newItem;
2273  }
2274 
2284  public function toSoap($fieldName, $namespace) {
2285  $myLevel = new ArrayObject();
2286 
2287  $this->__doChild($myLevel, $this->_fechaMatriculacion, 'FechaMatriculacion', 109, $namespace, 0, 1, false);
2288  $this->__doChild($myLevel, $this->_matricula, 'Matricula', 101, $namespace, 0, 1, false);
2289 
2290  //return $myLevel;
2291  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2292  }
2293 }
2294 
2295 class Titular extends SoapObject {
2296 
2297 
2302  private $_domicilioDGT = null;
2303  private $_hasDomicilioDGT = false;
2304  public function setDomicilioDGT($value) {
2305  $this->_domicilioDGT = $value;
2306  $this->_hasDomicilioDGT = ($value !== null);
2307  }
2308  public function hasDomicilioDGT() {
2309  return $this->_hasDomicilioDGT;
2310  }
2311  public function getDomicilioDGT() {
2312  return $this->_domicilioDGT;
2313  }
2314 
2315 
2320  private $_domicilioINE = null;
2321  private $_hasDomicilioINE = false;
2322  public function setDomicilioINE($value) {
2323  $this->_domicilioINE = $value;
2324  $this->_hasDomicilioINE = ($value !== null);
2325  }
2326  public function hasDomicilioINE() {
2327  return $this->_hasDomicilioINE;
2328  }
2329  public function getDomicilioINE() {
2330  return $this->_domicilioINE;
2331  }
2332 
2333 
2342  static public function fromSoap($vData) {
2343  $newItem = new Titular();
2344  if (isset($vData['DomicilioDGT'])) {
2345 
2346  $newClass = DomicilioDGT::fromSoap($vData['DomicilioDGT']);
2347  $newItem->setDomicilioDGT($newClass);
2348  }
2349  if (isset($vData['DomicilioINE'])) {
2350 
2351  $newClass = DomicilioINE::fromSoap($vData['DomicilioINE']);
2352  $newItem->setDomicilioINE($newClass);
2353  }
2354 
2355  return $newItem;
2356  }
2357 
2367  public function toSoap($fieldName, $namespace) {
2368  $myLevel = new ArrayObject();
2369 
2370  $this->__doChild($myLevel, $this->_domicilioDGT, 'DomicilioDGT', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
2371  $this->__doChild($myLevel, $this->_domicilioINE, 'DomicilioINE', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
2372 
2373  //return $myLevel;
2374  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2375  }
2376 }
2377 
2378 class DatosTecnicos extends SoapObject {
2379 
2380 
2385  private $_nivelEmisiones = null;
2386  private $_hasNivelEmisiones = false;
2387  public function setNivelEmisiones($value) {
2388  $this->_nivelEmisiones = $value;
2389  $this->_hasNivelEmisiones = ($value !== null);
2390  }
2391  public function hasNivelEmisiones() {
2392  return $this->_hasNivelEmisiones;
2393  }
2394  public function getNivelEmisiones() {
2395  return $this->_nivelEmisiones;
2396  }
2397 
2398 
2403  private $_masas = null;
2404  private $_hasMasas = false;
2405  public function setMasas($value) {
2406  $this->_masas = $value;
2407  $this->_hasMasas = ($value !== null);
2408  }
2409  public function hasMasas() {
2410  return $this->_hasMasas;
2411  }
2412  public function getMasas() {
2413  return $this->_masas;
2414  }
2415 
2416 
2421  private $_plazas = null;
2422  private $_hasPlazas = false;
2423  public function setPlazas($value) {
2424  $this->_plazas = $value;
2425  $this->_hasPlazas = ($value !== null);
2426  }
2427  public function hasPlazas() {
2428  return $this->_hasPlazas;
2429  }
2430  public function getPlazas() {
2431  return $this->_plazas;
2432  }
2433 
2434 
2439  private $_potencias = null;
2440  private $_hasPotencias = false;
2441  public function setPotencias($value) {
2442  $this->_potencias = $value;
2443  $this->_hasPotencias = ($value !== null);
2444  }
2445  public function hasPotencias() {
2446  return $this->_hasPotencias;
2447  }
2448  public function getPotencias() {
2449  return $this->_potencias;
2450  }
2451 
2452 
2461  static public function fromSoap($vData) {
2462  $newItem = new DatosTecnicos();
2463  if (isset($vData['NivelEmisiones'])) {
2464 
2465  $newItem->setNivelEmisiones($vData['NivelEmisiones']);
2466  }
2467  if (isset($vData['Masas'])) {
2468 
2469  $newClass = Masas::fromSoap($vData['Masas']);
2470  $newItem->setMasas($newClass);
2471  }
2472  if (isset($vData['Plazas'])) {
2473 
2474  $newClass = Plazas::fromSoap($vData['Plazas']);
2475  $newItem->setPlazas($newClass);
2476  }
2477  if (isset($vData['Potencias'])) {
2478 
2479  $newClass = Potencias::fromSoap($vData['Potencias']);
2480  $newItem->setPotencias($newClass);
2481  }
2482 
2483  return $newItem;
2484  }
2485 
2495  public function toSoap($fieldName, $namespace) {
2496  $myLevel = new ArrayObject();
2497 
2498  $this->__doChild($myLevel, $this->_nivelEmisiones, 'NivelEmisiones', 101, $namespace, 0, 1, false);
2499  $this->__doChild($myLevel, $this->_masas, 'Masas', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
2500  $this->__doChild($myLevel, $this->_plazas, 'Plazas', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
2501  $this->__doChild($myLevel, $this->_potencias, 'Potencias', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
2502 
2503  //return $myLevel;
2504  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2505  }
2506 }
2507 
2508 class Masas extends SoapObject {
2509 
2510 
2515  private $_masaMaximaTecnica = null;
2516  private $_hasMasaMaximaTecnica = false;
2517  public function setMasaMaximaTecnica($value) {
2518  $this->_masaMaximaTecnica = $value;
2519  $this->_hasMasaMaximaTecnica = ($value !== null);
2520  }
2521  public function hasMasaMaximaTecnica() {
2522  return $this->_hasMasaMaximaTecnica;
2523  }
2524  public function getMasaMaximaTecnica() {
2525  return $this->_masaMaximaTecnica;
2526  }
2527 
2528 
2533  private $_masaMaxima = null;
2534  private $_hasMasaMaxima = false;
2535  public function setMasaMaxima($value) {
2536  $this->_masaMaxima = $value;
2537  $this->_hasMasaMaxima = ($value !== null);
2538  }
2539  public function hasMasaMaxima() {
2540  return $this->_hasMasaMaxima;
2541  }
2542  public function getMasaMaxima() {
2543  return $this->_masaMaxima;
2544  }
2545 
2546 
2551  private $_masaServicio = null;
2552  private $_hasMasaServicio = false;
2553  public function setMasaServicio($value) {
2554  $this->_masaServicio = $value;
2555  $this->_hasMasaServicio = ($value !== null);
2556  }
2557  public function hasMasaServicio() {
2558  return $this->_hasMasaServicio;
2559  }
2560  public function getMasaServicio() {
2561  return $this->_masaServicio;
2562  }
2563 
2564 
2569  private $_tara = null;
2570  private $_hasTara = false;
2571  public function setTara($value) {
2572  $this->_tara = $value;
2573  $this->_hasTara = ($value !== null);
2574  }
2575  public function hasTara() {
2576  return $this->_hasTara;
2577  }
2578  public function getTara() {
2579  return $this->_tara;
2580  }
2581 
2582 
2591  static public function fromSoap($vData) {
2592  $newItem = new Masas();
2593  if (isset($vData['MasaMaximaTecnica'])) {
2594 
2595  $newItem->setMasaMaximaTecnica($vData['MasaMaximaTecnica']);
2596  }
2597  if (isset($vData['MasaMaxima'])) {
2598 
2599  $newItem->setMasaMaxima($vData['MasaMaxima']);
2600  }
2601  if (isset($vData['MasaServicio'])) {
2602 
2603  $newItem->setMasaServicio($vData['MasaServicio']);
2604  }
2605  if (isset($vData['Tara'])) {
2606 
2607  $newItem->setTara($vData['Tara']);
2608  }
2609 
2610  return $newItem;
2611  }
2612 
2622  public function toSoap($fieldName, $namespace) {
2623  $myLevel = new ArrayObject();
2624 
2625  $this->__doChild($myLevel, $this->_masaMaximaTecnica, 'MasaMaximaTecnica', 135, $namespace, 0, 1, false);
2626  $this->__doChild($myLevel, $this->_masaMaxima, 'MasaMaxima', 135, $namespace, 0, 1, false);
2627  $this->__doChild($myLevel, $this->_masaServicio, 'MasaServicio', 135, $namespace, 0, 1, false);
2628  $this->__doChild($myLevel, $this->_tara, 'Tara', 135, $namespace, 0, 1, false);
2629 
2630  //return $myLevel;
2631  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2632  }
2633 }
2634 
2635 class Plazas extends SoapObject {
2636 
2637 
2642  private $_mixtas = null;
2643  private $_hasMixtas = false;
2644  public function setMixtas($value) {
2645  $this->_mixtas = $value;
2646  $this->_hasMixtas = ($value !== null);
2647  }
2648  public function hasMixtas() {
2649  return $this->_hasMixtas;
2650  }
2651  public function getMixtas() {
2652  return $this->_mixtas;
2653  }
2654 
2655 
2660  private $_normales = null;
2661  private $_hasNormales = false;
2662  public function setNormales($value) {
2663  $this->_normales = $value;
2664  $this->_hasNormales = ($value !== null);
2665  }
2666  public function hasNormales() {
2667  return $this->_hasNormales;
2668  }
2669  public function getNormales() {
2670  return $this->_normales;
2671  }
2672 
2673 
2678  private $_numeroPlazasPie = null;
2679  private $_hasNumeroPlazasPie = false;
2680  public function setNumeroPlazasPie($value) {
2681  $this->_numeroPlazasPie = $value;
2682  $this->_hasNumeroPlazasPie = ($value !== null);
2683  }
2684  public function hasNumeroPlazasPie() {
2685  return $this->_hasNumeroPlazasPie;
2686  }
2687  public function getNumeroPlazasPie() {
2688  return $this->_numeroPlazasPie;
2689  }
2690 
2691 
2700  static public function fromSoap($vData) {
2701  $newItem = new Plazas();
2702  if (isset($vData['Mixtas'])) {
2703 
2704  $newItem->setMixtas($vData['Mixtas']);
2705  }
2706  if (isset($vData['Normales'])) {
2707 
2708  $newItem->setNormales($vData['Normales']);
2709  }
2710  if (isset($vData['NumeroPlazasPie'])) {
2711 
2712  $newItem->setNumeroPlazasPie($vData['NumeroPlazasPie']);
2713  }
2714 
2715  return $newItem;
2716  }
2717 
2727  public function toSoap($fieldName, $namespace) {
2728  $myLevel = new ArrayObject();
2729 
2730  $this->__doChild($myLevel, $this->_mixtas, 'Mixtas', 101, $namespace, 0, 1, false);
2731  $this->__doChild($myLevel, $this->_normales, 'Normales', 135, $namespace, 0, 1, false);
2732  $this->__doChild($myLevel, $this->_numeroPlazasPie, 'NumeroPlazasPie', 135, $namespace, 0, 1, false);
2733 
2734  //return $myLevel;
2735  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2736  }
2737 }
2738 
2739 class Potencias extends SoapObject {
2740 
2741 
2746  private $_cilindrada = null;
2747  private $_hasCilindrada = false;
2748  public function setCilindrada($value) {
2749  $this->_cilindrada = $value;
2750  $this->_hasCilindrada = ($value !== null);
2751  }
2752  public function hasCilindrada() {
2753  return $this->_hasCilindrada;
2754  }
2755  public function getCilindrada() {
2756  return $this->_cilindrada;
2757  }
2758 
2759 
2764  private $_potenciaFiscal = null;
2765  private $_hasPotenciaFiscal = false;
2766  public function setPotenciaFiscal($value) {
2767  $this->_potenciaFiscal = $value;
2768  $this->_hasPotenciaFiscal = ($value !== null);
2769  }
2770  public function hasPotenciaFiscal() {
2771  return $this->_hasPotenciaFiscal;
2772  }
2773  public function getPotenciaFiscal() {
2774  return $this->_potenciaFiscal;
2775  }
2776 
2777 
2782  private $_potenciaNetaMaxima = null;
2783  private $_hasPotenciaNetaMaxima = false;
2784  public function setPotenciaNetaMaxima($value) {
2785  $this->_potenciaNetaMaxima = $value;
2786  $this->_hasPotenciaNetaMaxima = ($value !== null);
2787  }
2788  public function hasPotenciaNetaMaxima() {
2789  return $this->_hasPotenciaNetaMaxima;
2790  }
2791  public function getPotenciaNetaMaxima() {
2792  return $this->_potenciaNetaMaxima;
2793  }
2794 
2795 
2800  private $_relacionPotenciaPeso = null;
2801  private $_hasRelacionPotenciaPeso = false;
2802  public function setRelacionPotenciaPeso($value) {
2803  $this->_relacionPotenciaPeso = $value;
2804  $this->_hasRelacionPotenciaPeso = ($value !== null);
2805  }
2806  public function hasRelacionPotenciaPeso() {
2807  return $this->_hasRelacionPotenciaPeso;
2808  }
2809  public function getRelacionPotenciaPeso() {
2810  return $this->_relacionPotenciaPeso;
2811  }
2812 
2813 
2822  static public function fromSoap($vData) {
2823  $newItem = new Potencias();
2824  if (isset($vData['Cilindrada'])) {
2825 
2826  $newItem->setCilindrada($vData['Cilindrada']);
2827  }
2828  if (isset($vData['PotenciaFiscal'])) {
2829 
2830  $newItem->setPotenciaFiscal($vData['PotenciaFiscal']);
2831  }
2832  if (isset($vData['PotenciaNetaMaxima'])) {
2833 
2834  $newItem->setPotenciaNetaMaxima($vData['PotenciaNetaMaxima']);
2835  }
2836  if (isset($vData['RelacionPotenciaPeso'])) {
2837 
2838  $newItem->setRelacionPotenciaPeso($vData['RelacionPotenciaPeso']);
2839  }
2840 
2841  return $newItem;
2842  }
2843 
2853  public function toSoap($fieldName, $namespace) {
2854  $myLevel = new ArrayObject();
2855 
2856  $this->__doChild($myLevel, $this->_cilindrada, 'Cilindrada', 104, $namespace, 0, 1, false);
2857  $this->__doChild($myLevel, $this->_potenciaFiscal, 'PotenciaFiscal', 104, $namespace, 0, 1, false);
2858  $this->__doChild($myLevel, $this->_potenciaNetaMaxima, 'PotenciaNetaMaxima', 104, $namespace, 0, 1, false);
2859  $this->__doChild($myLevel, $this->_relacionPotenciaPeso, 'RelacionPotenciaPeso', 104, $namespace, 0, 1, false);
2860 
2861  //return $myLevel;
2862  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2863  }
2864 }
2865 
2866 class DatosTramites extends SoapObject {
2867 
2868 
2873  private $_baja = null;
2874  private $_hasBaja = false;
2875  public function setBaja($value) {
2876  $this->_baja = $value;
2877  $this->_hasBaja = ($value !== null);
2878  }
2879  public function hasBaja() {
2880  return $this->_hasBaja;
2881  }
2882  public function getBaja() {
2883  return $this->_baja;
2884  }
2885 
2886 
2891  private $_fechaTransferencia = null;
2892  private $_hasFechaTransferencia = false;
2893  public function setFechaTransferencia($value) {
2894  $this->_fechaTransferencia = $value;
2895  $this->_hasFechaTransferencia = ($value !== null);
2896  }
2897  public function hasFechaTransferencia() {
2898  return $this->_hasFechaTransferencia;
2899  }
2900  public function getFechaTransferencia() {
2901  return $this->_fechaTransferencia;
2902  }
2903 
2904 
2913  static public function fromSoap($vData) {
2914  $newItem = new DatosTramites();
2915  if (isset($vData['Baja'])) {
2916 
2917  $newClass = Baja::fromSoap($vData['Baja']);
2918  $newItem->setBaja($newClass);
2919  }
2920  if (isset($vData['FechaTransferencia'])) {
2921 
2922  $newItem->setFechaTransferencia($vData['FechaTransferencia']);
2923  }
2924 
2925  return $newItem;
2926  }
2927 
2937  public function toSoap($fieldName, $namespace) {
2938  $myLevel = new ArrayObject();
2939 
2940  $this->__doChild($myLevel, $this->_baja, 'Baja', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
2941  $this->__doChild($myLevel, $this->_fechaTransferencia, 'FechaTransferencia', 109, $namespace, 0, 1, false);
2942 
2943  //return $myLevel;
2944  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
2945  }
2946 }
2947 
2948 class Baja extends SoapObject {
2949 
2950 
2955  private $_fechaInicio = null;
2956  private $_hasFechaInicio = false;
2957  public function setFechaInicio($value) {
2958  $this->_fechaInicio = $value;
2959  $this->_hasFechaInicio = ($value !== null);
2960  }
2961  public function hasFechaInicio() {
2962  return $this->_hasFechaInicio;
2963  }
2964  public function getFechaInicio() {
2965  return $this->_fechaInicio;
2966  }
2967 
2968 
2973  private $_fechaFin = null;
2974  private $_hasFechaFin = false;
2975  public function setFechaFin($value) {
2976  $this->_fechaFin = $value;
2977  $this->_hasFechaFin = ($value !== null);
2978  }
2979  public function hasFechaFin() {
2980  return $this->_hasFechaFin;
2981  }
2982  public function getFechaFin() {
2983  return $this->_fechaFin;
2984  }
2985 
2986 
2995  static public function fromSoap($vData) {
2996  $newItem = new Baja();
2997  if (isset($vData['FechaInicio'])) {
2998 
2999  $newItem->setFechaInicio($vData['FechaInicio']);
3000  }
3001  if (isset($vData['FechaFin'])) {
3002 
3003  $newItem->setFechaFin($vData['FechaFin']);
3004  }
3005 
3006  return $newItem;
3007  }
3008 
3018  public function toSoap($fieldName, $namespace) {
3019  $myLevel = new ArrayObject();
3020 
3021  $this->__doChild($myLevel, $this->_fechaInicio, 'FechaInicio', 109, $namespace, 0, 1, false);
3022  $this->__doChild($myLevel, $this->_fechaFin, 'FechaFin', 109, $namespace, 0, 1, false);
3023 
3024  //return $myLevel;
3025  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
3026  }
3027 }
3028 
3030 
3031 
3036  private $_listaImpagos = null;
3037  private $_hasListaImpagos = false;
3038  public function setListaImpagos($value) {
3039  $this->_listaImpagos = $value;
3040  $this->_hasListaImpagos = ($value !== null);
3041  }
3042  public function hasListaImpagos() {
3043  return $this->_hasListaImpagos;
3044  }
3045  public function getListaImpagos() {
3046  return $this->_listaImpagos;
3047  }
3048 
3049 
3058  static public function fromSoap($vData) {
3059  $newItem = new DatosAdministrativos();
3060  if (isset($vData['ListaImpagos'])) {
3061 
3062  $newClass = ListaImpagos::fromSoap($vData['ListaImpagos']);
3063  $newItem->setListaImpagos($newClass);
3064  }
3065 
3066  return $newItem;
3067  }
3068 
3078  public function toSoap($fieldName, $namespace) {
3079  $myLevel = new ArrayObject();
3080 
3081  $this->__doChild($myLevel, $this->_listaImpagos, 'ListaImpagos', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
3082 
3083  //return $myLevel;
3084  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
3085  }
3086 }
3087 
3088 class ListaImpagos extends SoapObject {
3089 
3094  private $_impago = array();
3095  private $_hasImpago = false;
3096  public function replaceArrayImpago($value) {
3097  $this->_impago = $value;
3098  $this->_hasImpago = (isset($this->_impago) && !empty($this->_impago));
3099  }
3100  public function retrieveArrayImpago() {
3101  return $this->_impago;
3102  }
3103  public function addImpago($value) {
3104  array_push($this->_impago, $value);
3105  $this->_hasImpago = (isset($this->_impago) && !empty($this->_impago));
3106  }
3107  public function hasImpago() {
3108  return $this->_hasImpago;
3109  }
3110  public function getImpago($index) {
3111  return $this->_impago[$index];
3112  }
3113  public function countImpago() {
3114  return count($this->_impago);
3115  }
3116 
3117 
3126  static public function fromSoap($vData) {
3127  $newItem = new ListaImpagos();
3128  if (!isset($vData['Impago'])) {
3129  throw new Exception('El parametro Impago es obligatorio');
3130  }
3131  if (isset($vData['Impago']) && !empty($vData['Impago'])) {
3132  if (SoapObject::is_assoc($vData['Impago'])) {
3133 
3134  // Si es asociativo, lo probable es que nos encontremos ante un array de un solo elemento de forma que directamente se ha introducido el elemento a tratar
3135  $newClass = Impago::fromSoap($vData['Impago']);
3136  $newItem->addImpago($newClass);
3137  } else {
3138 
3139  foreach ($vData['Impago'] as $oVar) {
3140  $newClass = Impago::fromSoap($oVar);
3141  $newItem->addImpago($newClass);
3142  }
3143  }
3144  }
3145 
3146  return $newItem;
3147  }
3148 
3158  public function toSoap($fieldName, $namespace) {
3159  $myLevel = new ArrayObject();
3160 
3161  $this->__doChild($myLevel, $this->_impago, 'Impago', SOAP_ENC_OBJECT, $namespace, 1, unbounded, false);
3162 
3163  //return $myLevel;
3164  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
3165  }
3166 }
3167 
3168 class Impago extends SoapObject {
3169 
3170 
3175  private $_anioImpago = null;
3176  private $_hasAnioImpago = false;
3177  public function setAnioImpago($value) {
3178  $this->_anioImpago = $value;
3179  $this->_hasAnioImpago = ($value !== null);
3180  }
3181  public function hasAnioImpago() {
3182  return $this->_hasAnioImpago;
3183  }
3184  public function getAnioImpago() {
3185  return $this->_anioImpago;
3186  }
3187 
3188 
3193  private $_documentacion = null;
3194  private $_hasDocumentacion = false;
3195  public function setDocumentacion($value) {
3196  $this->_documentacion = $value;
3197  $this->_hasDocumentacion = ($value !== null);
3198  }
3199  public function hasDocumentacion() {
3200  return $this->_hasDocumentacion;
3201  }
3202  public function getDocumentacion() {
3203  return $this->_documentacion;
3204  }
3205 
3206 
3211  private $_provincia = null;
3212  private $_hasProvincia = false;
3213  public function setProvincia($value) {
3214  $this->_provincia = $value;
3215  $this->_hasProvincia = ($value !== null);
3216  }
3217  public function hasProvincia() {
3218  return $this->_hasProvincia;
3219  }
3220  public function getProvincia() {
3221  return $this->_provincia;
3222  }
3223 
3224 
3229  private $_municipio = null;
3230  private $_hasMunicipio = false;
3231  public function setMunicipio($value) {
3232  $this->_municipio = $value;
3233  $this->_hasMunicipio = ($value !== null);
3234  }
3235  public function hasMunicipio() {
3236  return $this->_hasMunicipio;
3237  }
3238  public function getMunicipio() {
3239  return $this->_municipio;
3240  }
3241 
3242 
3251  static public function fromSoap($vData) {
3252  $newItem = new Impago();
3253  if (isset($vData['AnioImpago'])) {
3254 
3255  $newItem->setAnioImpago($vData['AnioImpago']);
3256  }
3257  if (isset($vData['Documentacion'])) {
3258 
3259  $newItem->setDocumentacion($vData['Documentacion']);
3260  }
3261  if (isset($vData['Provincia'])) {
3262 
3263  $newClass = Provincia::fromSoap($vData['Provincia']);
3264  $newItem->setProvincia($newClass);
3265  }
3266  if (isset($vData['Municipio'])) {
3267 
3268  $newClass = Municipio::fromSoap($vData['Municipio']);
3269  $newItem->setMunicipio($newClass);
3270  }
3271 
3272  return $newItem;
3273  }
3274 
3284  public function toSoap($fieldName, $namespace) {
3285  $myLevel = new ArrayObject();
3286 
3287  $this->__doChild($myLevel, $this->_anioImpago, 'AnioImpago', 111, $namespace, 0, 1, false);
3288  $this->__doChild($myLevel, $this->_documentacion, 'Documentacion', 101, $namespace, 0, 1, false);
3289  $this->__doChild($myLevel, $this->_provincia, 'Provincia', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
3290  $this->__doChild($myLevel, $this->_municipio, 'Municipio', SOAP_ENC_OBJECT, $namespace, 0, 1, false);
3291 
3292  //return $myLevel;
3293  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
3294  }
3295 }
3296 
3297 class Municipio extends SoapObject {
3298 
3299 
3304  private $_codigo = null;
3305  private $_hasCodigo = false;
3306  public function setCodigo($value) {
3307  $this->_codigo = $value;
3308  $this->_hasCodigo = ($value !== null);
3309  }
3310  public function hasCodigo() {
3311  return $this->_hasCodigo;
3312  }
3313  public function getCodigo() {
3314  return $this->_codigo;
3315  }
3316 
3317 
3322  private $_descripcion = null;
3323  private $_hasDescripcion = false;
3324  public function setDescripcion($value) {
3325  $this->_descripcion = $value;
3326  $this->_hasDescripcion = ($value !== null);
3327  }
3328  public function hasDescripcion() {
3329  return $this->_hasDescripcion;
3330  }
3331  public function getDescripcion() {
3332  return $this->_descripcion;
3333  }
3334 
3335 
3344  static public function fromSoap($vData) {
3345  $newItem = new Municipio();
3346  if (isset($vData['Codigo'])) {
3347 
3348  $newItem->setCodigo($vData['Codigo']);
3349  }
3350  if (isset($vData['Descripcion'])) {
3351 
3352  $newItem->setDescripcion($vData['Descripcion']);
3353  }
3354 
3355  return $newItem;
3356  }
3357 
3367  public function toSoap($fieldName, $namespace) {
3368  $myLevel = new ArrayObject();
3369 
3370  $this->__doChild($myLevel, $this->_codigo, 'Codigo', 101, $namespace, 0, 1, false);
3371  $this->__doChild($myLevel, $this->_descripcion, 'Descripcion', 101, $namespace, 0, 1, false);
3372 
3373  //return $myLevel;
3374  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
3375  }
3376 }
3377 
3378 class Provincia extends SoapObject {
3379 
3380 
3385  private $_codigo = null;
3386  private $_hasCodigo = false;
3387  public function setCodigo($value) {
3388  $this->_codigo = $value;
3389  $this->_hasCodigo = ($value !== null);
3390  }
3391  public function hasCodigo() {
3392  return $this->_hasCodigo;
3393  }
3394  public function getCodigo() {
3395  return $this->_codigo;
3396  }
3397 
3398 
3403  private $_descripcion = null;
3404  private $_hasDescripcion = false;
3405  public function setDescripcion($value) {
3406  $this->_descripcion = $value;
3407  $this->_hasDescripcion = ($value !== null);
3408  }
3409  public function hasDescripcion() {
3410  return $this->_hasDescripcion;
3411  }
3412  public function getDescripcion() {
3413  return $this->_descripcion;
3414  }
3415 
3416 
3425  static public function fromSoap($vData) {
3426  $newItem = new Provincia();
3427  if (isset($vData['Codigo'])) {
3428 
3429  $newItem->setCodigo($vData['Codigo']);
3430  }
3431  if (isset($vData['Descripcion'])) {
3432 
3433  $newItem->setDescripcion($vData['Descripcion']);
3434  }
3435 
3436  return $newItem;
3437  }
3438 
3448  public function toSoap($fieldName, $namespace) {
3449  $myLevel = new ArrayObject();
3450 
3451  $this->__doChild($myLevel, $this->_codigo, 'Codigo', 101, $namespace, 0, 1, false);
3452  $this->__doChild($myLevel, $this->_descripcion, 'Descripcion', 101, $namespace, 0, 1, false);
3453 
3454  //return $myLevel;
3455  return new SoapVar($myLevel, SOAP_ENC_OBJECT, null, null, $fieldName, $namespace);
3456  }
3457 }
3458 
3459 ?>
toSoap($fieldName, $namespace)
Definition: Composer.php:3448
setSolicitante($identificadorSolicitante, $nombreSolicitante, $consentimiento, $finalidad, $unidadTramitadora=null, $idExpediente=null)
Definition: Composer.php:203
toSoap($fieldName, $namespace)
Definition: Composer.php:2367
toSoap($fieldName, $namespace)
Definition: Composer.php:1761
toSoap($fieldName, $namespace)
Definition: Composer.php:1107
toSoap($IdPeticion, $CodigoCertificado, $numParcial=null)
Definition: Composer.php:252
toSoap($fieldName, $namespace)
Definition: Composer.php:3018
toSoap($fieldName, $namespace)
Definition: Composer.php:3367
toSoap($fieldName, $namespace)
Definition: Composer.php:2937
toSoap($fieldName, $namespace)
Definition: Composer.php:3158
setTitular($tipoDocumentacion, $documentacion, $nombreCompleto=null, $nombre=null, $apellido1=null, $apellido2=null)
Definition: Composer.php:183
toSoap($fieldName, $namespace)
Definition: Composer.php:2110
toSoap($fieldName, $namespace)
Definition: Composer.php:754
toSoap($fieldName, $namespace)
Definition: Composer.php:2495
toSoap($fieldName, $namespace)
Definition: Composer.php:3284
toSoap($fieldName, $namespace)
Definition: Composer.php:2284
toSoap($fieldName, $namespace)
Definition: Composer.php:2622
toSoap($fieldName, $namespace)
Definition: Composer.php:1497
toSoap($fieldName, $namespace)
Definition: Composer.php:977
toSoap($fieldName, $namespace)
Definition: Composer.php:2853
toSoap($fieldName, $namespace)
Definition: Composer.php:2203
toSoap($fieldName, $namespace)
Definition: Composer.php:2727
toSoap($fieldName, $namespace)
Definition: Composer.php:867