1 | <?php |
||
10 | class Wsdl extends AbstractDocument |
||
11 | { |
||
12 | /** |
||
13 | * @var ModelContainer |
||
14 | */ |
||
15 | protected $externalSchemas; |
||
16 | /** |
||
17 | * @see \WsdlToPhp\DomHandler\AbstractDomDocumentHandler::__construct() |
||
18 | * @param \DOMDocument $domDocument |
||
19 | * @param Generator $generator |
||
20 | */ |
||
21 | public function __construct(\DOMDocument $domDocument, Generator $generator) |
||
26 | /** |
||
27 | * @param Model $schema |
||
28 | * @return \WsdlToPhp\PackageGenerator\WsdlHandler\Wsdl |
||
29 | */ |
||
30 | public function addExternalSchema(Model $schema) |
||
35 | /** |
||
36 | * @param string $name |
||
37 | * @return \WsdlToPhp\PackageGenerator\Model\Schema|null |
||
38 | */ |
||
39 | public function getExternalSchema($name) |
||
43 | /** |
||
44 | * @return \WsdlToPhp\PackageGenerator\Container\Model\Schema |
||
45 | */ |
||
46 | public function getExternalSchemas() |
||
50 | /** |
||
51 | * @see \WsdlToPhp\PackageGenerator\WsdlHandler\AbstractDocument::getElementByName() |
||
52 | * @return AbstractTag|null |
||
53 | */ |
||
54 | public function getElementByName($name, $includeExternals = false) |
||
60 | /** |
||
61 | * @see \WsdlToPhp\DomHandler\AbstractDomDocumentHandler::getElementByNameAndAttributes() |
||
62 | * @return AbstractTag|null |
||
63 | */ |
||
64 | public function getElementByNameAndAttributes($name, array $attributes, $includeExternals = false) |
||
71 | /** |
||
72 | * @see \WsdlToPhp\PackageGenerator\WsdlHandler\AbstractDocument::getElementsByName() |
||
73 | * @return AbstractTag[] |
||
74 | */ |
||
75 | public function getElementsByName($name, $includeExternals = false) |
||
81 | /** |
||
82 | * @param string $name |
||
83 | * @param array $attributes |
||
84 | * @param \DOMNode|null $node |
||
85 | * @param bool $includeExternals |
||
86 | * @see \WsdlToPhp\DomHandler\AbstractDomDocumentHandler::getElementsByNameAndAttributes() |
||
87 | * @return AbstractTag[] |
||
88 | */ |
||
89 | public function getElementsByNameAndAttributes($name, array $attributes, \DOMNode $node = null, $includeExternals = false) |
||
97 | /** |
||
98 | * Handler any method that exist within the parant class, |
||
99 | * in addition it handles the case when we want to use the external schemas to search in |
||
100 | * @param string $method |
||
101 | * @param array $parameters |
||
102 | * @param bool $includeExternals |
||
103 | * @param bool $returnOne |
||
104 | * @return mixed |
||
105 | */ |
||
106 | private function useParentMethodAndExternals($method, $parameters, $includeExternals = false, $returnOne = false) |
||
117 | /** |
||
118 | * @param string $method |
||
119 | * @param array $parameters |
||
120 | * @param bool $returnOne |
||
121 | * @return mixed |
||
122 | */ |
||
123 | private function useExternalSchemas($method, $parameters, $parentResult, $returnOne = false) |
||
144 | } |
||
145 |