Наследование: extends AbstractDocument
Пример #1
0
 /**
  * Adds Wsdl location
  * @param Wsdl $wsdl
  * @param string $schemaLocation
  * @return Generator
  */
 public function addSchemaToWsdl(Wsdl $wsdl, $schemaLocation)
 {
     if (!empty($schemaLocation) && $wsdl->getContent() instanceof WsdlDocument && $wsdl->getContent()->getExternalSchema($schemaLocation) === null) {
         $wsdl->getContent()->addExternalSchema(new Schema($wsdl->getGenerator(), $schemaLocation, $this->getUrlContent($schemaLocation)));
     }
     return $this;
 }
Пример #2
0
 /**
  * @param Wsdl $wsdl
  * @param Schema $schema
  * @return boolean
  */
 public function isSchemaParsed(Wsdl $wsdl, Schema $schema)
 {
     $key = $wsdl->getName() . $schema->getName();
     return array_key_exists($key, $this->parsedSchemas) && is_array($this->parsedSchemas[$key]) && in_array($this->parsingTag(), $this->parsedSchemas[$key]);
 }