| Total Complexity | 6 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class Wsdl extends AbstractDocument |
||
| 12 | 1086 | { |
|
| 13 | private SchemaContainer $schemas; |
||
| 14 | |||
| 15 | public function __construct(Generator $generator, string $name, string $content) |
||
| 16 | { |
||
| 17 | 474 | parent::__construct($generator, $name, $content); |
|
| 18 | $this->schemas = new SchemaContainer($generator); |
||
| 19 | 474 | } |
|
| 20 | |||
| 21 | public function getContent(): WsdlDocument |
||
| 24 | } |
||
| 25 | |||
| 26 | public function addSchema(Schema $schema): self |
||
| 27 | { |
||
| 28 | $this->getContent()->addExternalSchema($schema->getContent()); |
||
| 29 | |||
| 30 | $this->schemas->add($schema); |
||
| 31 | |||
| 32 | return $this; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function hasSchema(string $schemaLocation): bool |
||
| 36 | { |
||
| 37 | return $this->schemas->getSchemaByName($schemaLocation) instanceof Schema; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function getSchemas(): SchemaContainer |
||
| 41 | { |
||
| 42 | return $this->schemas; |
||
| 43 | } |
||
| 44 | |||
| 45 | protected function contentClass(): string |
||
| 48 | } |
||
| 49 | } |
||
| 50 |